diff --git a/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java b/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java index 32ea27bc..4a2c1dee 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java @@ -167,8 +167,8 @@ public class GeneratedGenericsFinder implements ASTVisitor { } GenericGeneratorResultsForAllMethods ggRfaM = null; + List listOfMethAndCons = new ArrayList<>(); for(String methID: fogg.methodConstraintsWithPosition.keySet()) { - List listOfMethAndCons = new ArrayList<>(); List listOfGGR = new ArrayList<>(); for(TPHConstraint methCons: fogg.methodConstraintsWithPosition.get(methID)) { GenericsGeneratorResult ggR = new GenericsGeneratorResult(methCons, new HashSet<>()); @@ -176,8 +176,8 @@ public class GeneratedGenericsFinder implements ASTVisitor { } MethodAndConstraints mac = new MethodAndConstraints(methID, listOfGGR); listOfMethAndCons.add(mac); - ggRfaM = new GenericGeneratorResultsForAllMethods(listOfMethAndCons); } + ggRfaM = new GenericGeneratorResultsForAllMethods(listOfMethAndCons); ggResultAlternative = new GenericsGeneratorResultForClass(className, listOfClassCons, ggRfaM); if(ggResultAlternative != null) { diff --git a/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java b/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java index b1d2510b..92f13760 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java @@ -128,8 +128,8 @@ public class FamilyOfGeneratedGenerics { for(String curMeth: tempMethodConstraintsWithPosition.keySet()){ for(int i=0; i