modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java
This commit is contained in:
parent
1a135ebe5c
commit
cfacc6235c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user