modified: ../../src/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java

new Arraylist erzeugt beim setzen der Initializer in den Pseudoconstruktor
This commit is contained in:
Martin Plümicke 2018-12-04 15:30:04 +01:00
parent af6537841c
commit 54325d5168

View File

@ -281,7 +281,7 @@ public class SyntaxTreeGenerator{
private Constructor generatePseudoConstructor(String className, JavaClassName parentClass, RefType superClass, GenericDeclarationList classGenerics, Token offset){
RefType classType = ClassOrInterface.generateTypeOfClass(reg.getName(className), classGenerics, offset);
ParameterList params = new ParameterList(new ArrayList<>(), offset);
Block block = new Block(fieldInitializations, offset);
Block block = new Block(new ArrayList<>(fieldInitializations), offset);
return new Constructor(Modifier.PUBLIC, className, classType, params, block, classGenerics, offset /*, fieldInitializations geloescht PL 2018-11-24 */);
}