diff options
author | Roel Spilker <r.spilker@gmail.com> | 2010-07-25 01:49:29 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2010-07-25 01:49:29 +0200 |
commit | 9bc463231524e634091b314376ff5a38cc5cbb51 (patch) | |
tree | 74deb7f7b79a2f9446d19ad01120f791d2ebe3c7 /src/core/lombok/javac/JavacNode.java | |
parent | 304f57bd05b6298be8feb0fc368845249f805798 (diff) | |
download | lombok-9bc463231524e634091b314376ff5a38cc5cbb51.tar.gz lombok-9bc463231524e634091b314376ff5a38cc5cbb51.tar.bz2 lombok-9bc463231524e634091b314376ff5a38cc5cbb51.zip |
Bugfix: in JavacNode intintializers were not structurally significant
Diffstat (limited to 'src/core/lombok/javac/JavacNode.java')
-rw-r--r-- | src/core/lombok/javac/JavacNode.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/lombok/javac/JavacNode.java b/src/core/lombok/javac/JavacNode.java index 3f513887..8bbd007f 100644 --- a/src/core/lombok/javac/JavacNode.java +++ b/src/core/lombok/javac/JavacNode.java @@ -138,11 +138,14 @@ public class JavacNode extends lombok.core.LombokNode<JavacAST, JavacNode, JCTre } /** {@inheritDoc} */ - @Override protected boolean calculateIsStructurallySignificant() { + @Override protected boolean calculateIsStructurallySignificant(JCTree parent) { if (node instanceof JCClassDecl) return true; if (node instanceof JCMethodDecl) return true; if (node instanceof JCVariableDecl) return true; if (node instanceof JCCompilationUnit) return true; + //Static and instance initializers + if (node instanceof JCBlock) return parent instanceof JCClassDecl; + return false; } |