diff --git a/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java b/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java index 9e73fb03f..f6292f3bd 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/TPHExtractor.java @@ -196,7 +196,7 @@ public class TPHExtractor extends AbstractASTWalker { cons.getParameterList().accept(this); if(cons.block != null) cons.block.accept(this); - inMethod = true; + inMethod = true; } @Override diff --git a/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java b/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java index ba55c4c7a..c8d9b2e0a 100644 --- a/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java +++ b/src/main/java/de/dhbwstuttgart/bytecode/genericsGenerator/GeneratedGenericsFinder.java @@ -71,7 +71,7 @@ public class GeneratedGenericsFinder implements ASTVisitor { private Collection listOfResultSets; private SourceFile sf; private List tphsClass; - private GenericGenratorResultForSourceFile generatedGenericsForSF; + private GenericGenratorResultForSourceFile generatedGenericsForSF;//Ergebnis des GGenerics private ResultSet resultSet; private final List methodNameAndParamsT = new ArrayList<>(); diff --git a/src/test/java/AllgemeinTest.java b/src/test/java/AllgemeinTest.java index 73f29ea98..c937035ed 100644 --- a/src/test/java/AllgemeinTest.java +++ b/src/test/java/AllgemeinTest.java @@ -39,7 +39,8 @@ public class AllgemeinTest { //String className = "Pair"; //String className = "FCTest3"; //String className = "Var"; - String className = "Put"; + //String className = "Put"; + String className = "Twice"; //PL 2019-10-24: genutzt fuer unterschiedliche Tests path = System.getProperty("user.dir")+"/src/test/resources/AllgemeinTest/" + className + ".jav"; //path = System.getProperty("user.dir")+"/src/test/resources/AllgemeinTest/Overloading_Generics.jav"; diff --git a/src/test/resources/bytecode/javFiles/FieldTphConsMeth.jav b/src/test/resources/bytecode/javFiles/FieldTphConsMeth.jav index dd4d9bde0..cf195bd28 100644 --- a/src/test/resources/bytecode/javFiles/FieldTphConsMeth.jav +++ b/src/test/resources/bytecode/javFiles/FieldTphConsMeth.jav @@ -9,10 +9,10 @@ public class FieldTphConsMeth { return b; } - /*setA(x) { + setA(x) { a = x; return a; - }*/ + } m(x,y) { x = id(y);