modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java

This commit is contained in:
AluAli 2021-01-22 15:13:03 +01:00
parent 1a135ebe5c
commit cfacc6235c

View File

@ -35,25 +35,19 @@ public class FamilyOfGeneratedGenerics {
cs_cl.add(cons);
}
}
boolean equalsConstraintsList = false;
List<ClassConstraint> tempList = new ArrayList<>();
boolean addedToConstraintsList = false;
do {
addedToConstraintsList = false;
List<ClassConstraint> classConstraints2 = new ArrayList<>();
classConstraints2 = transitiveSubtypeForClassTypes(cs, cs_cl); // in Klammer classConstraints1 oder constraintsSet? beides eher
if (classConstraints2 == tempList) {
equalsConstraintsList = true;
}
for (ClassConstraint cons: classConstraints2) {
if (!checkForDuplicates(cons, cs_cl)) {
cs_cl.add(cons);
addedToConstraintsList = true;
}
}
tempList = new ArrayList<>(classConstraints2);
for (ClassConstraint cc : tempList) {
classConstraints2.remove(cc);
System.out.println(classConstraints2);
}
}while(!equalsConstraintsList);
}while(addedToConstraintsList);
List<ClassConstraint> classConstraints3 = hasNoSupertypeForClassTypes(cs, cs_cl, posOfTphs);
for (ClassConstraint cons: classConstraints3) {