diff options
author | Roel Spilker <r.spilker@gmail.com> | 2016-10-17 23:03:32 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2016-10-17 23:03:32 +0200 |
commit | 49f0bc1c3ede3c81754568af22fcdbbe8f4b5a8f (patch) | |
tree | 6986510d8a45e2cca4fcb81d87a3d675032a0c10 /src/core/lombok/javac | |
parent | 2f210869f3ad6608cfa1aa8b8beb12c2f4bb9c35 (diff) | |
download | lombok-49f0bc1c3ede3c81754568af22fcdbbe8f4b5a8f.tar.gz lombok-49f0bc1c3ede3c81754568af22fcdbbe8f4b5a8f.tar.bz2 lombok-49f0bc1c3ede3c81754568af22fcdbbe8f4b5a8f.zip |
Cleanup
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r-- | src/core/lombok/javac/JavacAST.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/lombok/javac/JavacAST.java b/src/core/lombok/javac/JavacAST.java index 3130e7a5..106a29ae 100644 --- a/src/core/lombok/javac/JavacAST.java +++ b/src/core/lombok/javac/JavacAST.java @@ -81,7 +81,7 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> { * @param top The compilation unit, which serves as the top level node in the tree to be built. */ public JavacAST(Messager messager, Context context, JCCompilationUnit top) { - super(sourceName(top), PackageName.getPackageName(top), new JavacImportList(top)); + super(sourceName(top), PackageName.getPackageName(top), new JavacImportList(top), statementTypes()); setTop(buildCompilationUnit(top)); this.context = context; this.messager = messager; @@ -383,9 +383,8 @@ public class JavacAST extends AST<JavacAST, JavacNode, JCTree> { } } - /** For javac, both JCExpression and JCStatement are considered as valid children types. */ - @Override - protected Collection<Class<? extends JCTree>> getStatementTypes() { + /* For javac, both JCExpression and JCStatement are considered as valid children types. */ + private static Collection<Class<? extends JCTree>> statementTypes() { Collection<Class<? extends JCTree>> collection = new ArrayList<Class<? extends JCTree>>(3); collection.add(JCStatement.class); collection.add(JCExpression.class); |