From 9bc463231524e634091b314376ff5a38cc5cbb51 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Sun, 25 Jul 2010 01:49:29 +0200 Subject: Bugfix: in JavacNode intintializers were not structurally significant --- src/core/lombok/core/LombokNode.java | 10 +++++++--- src/core/lombok/eclipse/EclipseNode.java | 2 +- src/core/lombok/javac/JavacNode.java | 5 ++++- 3 files changed, 12 insertions(+), 5 deletions(-) (limited to 'src/core/lombok') diff --git a/src/core/lombok/core/LombokNode.java b/src/core/lombok/core/LombokNode.java index 1d080c59..6fe37a6b 100644 --- a/src/core/lombok/core/LombokNode.java +++ b/src/core/lombok/core/LombokNode.java @@ -70,8 +70,12 @@ public abstract class LombokNode, L extends LombokNode() : children; - for (L child : this.children) child.parent = (L) this; - this.isStructurallySignificant = calculateIsStructurallySignificant(); + for (L child : this.children) { + child.parent = (L) this; + if (!child.isStructurallySignificant) + child.isStructurallySignificant = calculateIsStructurallySignificant(node); + } + this.isStructurallySignificant = calculateIsStructurallySignificant(null); } /** {@inheritDoc} */ @@ -101,7 +105,7 @@ public abstract class LombokNode, L extends LombokNode