From dc62b72f7f4ba4723747695a355370527e51a272 Mon Sep 17 00:00:00 2001 From: AluAli Date: Fri, 29 Jan 2021 19:36:17 +0100 Subject: [PATCH] modified: src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java modified: src/main/java/de/dhbwstuttgart/bytecode/insertGenerics/FamilyOfGeneratedGenerics.java --- .../genericsGenerator/GeneratedGenericsFinder.java | 4 ++-- .../insertGenerics/FamilyOfGeneratedGenerics.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) 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