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);
|
cs_cl.add(cons);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
boolean equalsConstraintsList = false;
|
boolean addedToConstraintsList = false;
|
||||||
List<ClassConstraint> tempList = new ArrayList<>();
|
|
||||||
do {
|
do {
|
||||||
|
addedToConstraintsList = false;
|
||||||
List<ClassConstraint> classConstraints2 = new ArrayList<>();
|
List<ClassConstraint> classConstraints2 = new ArrayList<>();
|
||||||
classConstraints2 = transitiveSubtypeForClassTypes(cs, cs_cl); // in Klammer classConstraints1 oder constraintsSet? beides eher
|
classConstraints2 = transitiveSubtypeForClassTypes(cs, cs_cl); // in Klammer classConstraints1 oder constraintsSet? beides eher
|
||||||
if (classConstraints2 == tempList) {
|
|
||||||
equalsConstraintsList = true;
|
|
||||||
}
|
|
||||||
for (ClassConstraint cons: classConstraints2) {
|
for (ClassConstraint cons: classConstraints2) {
|
||||||
if (!checkForDuplicates(cons, cs_cl)) {
|
if (!checkForDuplicates(cons, cs_cl)) {
|
||||||
cs_cl.add(cons);
|
cs_cl.add(cons);
|
||||||
|
addedToConstraintsList = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tempList = new ArrayList<>(classConstraints2);
|
}while(addedToConstraintsList);
|
||||||
for (ClassConstraint cc : tempList) {
|
|
||||||
classConstraints2.remove(cc);
|
|
||||||
System.out.println(classConstraints2);
|
|
||||||
}
|
|
||||||
}while(!equalsConstraintsList);
|
|
||||||
|
|
||||||
List<ClassConstraint> classConstraints3 = hasNoSupertypeForClassTypes(cs, cs_cl, posOfTphs);
|
List<ClassConstraint> classConstraints3 = hasNoSupertypeForClassTypes(cs, cs_cl, posOfTphs);
|
||||||
for (ClassConstraint cons: classConstraints3) {
|
for (ClassConstraint cons: classConstraints3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user