aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorJan Lahoda <lahoda@gmail.com>2014-01-02 23:43:52 +0100
committerJan Lahoda <lahoda@gmail.com>2014-01-02 23:43:52 +0100
commit9760b35197969465736c004c6c4e4a283b1b8d3b (patch)
tree295fa63295f3cbbebf2407f1b0c1f795f53b33cf /src/core
parentfa1d765445d5f883af3a53cd86878cc4b2f51910 (diff)
downloadlombok-9760b35197969465736c004c6c4e4a283b1b8d3b.tar.gz
lombok-9760b35197969465736c004c6c4e4a283b1b8d3b.tar.bz2
lombok-9760b35197969465736c004c6c4e4a283b1b8d3b.zip
591: setting positions for parameters even when running in NB editor, to avoid problems in javac's Flow.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lombok/javac/handlers/JavacHandlerUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
index ef2a936a..03c2dcff 100644
--- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java
+++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
@@ -149,7 +149,7 @@ public class JavacHandlerUtil {
if (source == null) generatedNodes.remove(node);
else generatedNodes.put(node, new WeakReference<JCTree>(source));
}
- if (source != null && !inNetbeansEditor(context)) node.pos = source.pos;
+ if (source != null && (!inNetbeansEditor(context) || (node instanceof JCVariableDecl && (((JCVariableDecl) node).mods.flags & Flags.PARAMETER) != 0))) node.pos = source.pos;
return node;
}