diff --git a/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java b/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java index 2c8c92f8..46d00146 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java @@ -50,6 +50,7 @@ public class FamilyOfGeneratedGenerics { * {T < .T' | T is a type variable in a type of a node of a field} */ public static List typeOfANodeOfAField(List allConstraints, List cs_cl, HashMap posOfTphs) { + //RuntimeException re = new RuntimeException("enthält EQUALS-Relation"); List tempCC= new ArrayList<>(); for(TPHConstraint allCons: allConstraints){ if(posOfTphs.containsKey(allCons.getLeft()) && allCons.getRight()!=null && allCons.getRel()==Relation.EXTENDS) { @@ -62,6 +63,9 @@ public class FamilyOfGeneratedGenerics { } } } + /*else if (allCons.getRel() != Relation.EXTENDS) { + throw re; + }*/ } return tempCC; } @@ -97,19 +101,13 @@ public class FamilyOfGeneratedGenerics { for(TPHConstraint allCons: allConstraints) { for(ClassConstraint cCons: cs_cl) { for(String tph: posOfTphs.keySet()) { - for(int i=0; i cs, String tph) { + for(int i=0; i