aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-01-08 14:43:28 -0800
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-01-08 14:43:28 -0800
commit7bbe19f1b8982e21ef0aa94644397b4961a5c470 (patch)
tree295fa63295f3cbbebf2407f1b0c1f795f53b33cf
parentfa1d765445d5f883af3a53cd86878cc4b2f51910 (diff)
parent9760b35197969465736c004c6c4e4a283b1b8d3b (diff)
downloadlombok-7bbe19f1b8982e21ef0aa94644397b4961a5c470.tar.gz
lombok-7bbe19f1b8982e21ef0aa94644397b4961a5c470.tar.bz2
lombok-7bbe19f1b8982e21ef0aa94644397b4961a5c470.zip
Merge pull request #40 from jlahoda/591
Lombok issue 591: Lombok 1.12.2 has some regressions with NetBeans
-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;
}