From f0db6cb901617c93a7d519587d6202f21079a159 Mon Sep 17 00:00:00 2001 From: AluAli Date: Fri, 13 Nov 2020 16:22:23 +0100 Subject: [PATCH] modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java --- .../FamilyOfGeneratedGenerics.java | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) 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