mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 08:18:29 +00:00
591: setting positions for parameters even when running in NB editor, to avoid problems in javac's Flow.
This commit is contained in:
1 parent
fa1d765445
commit
9760b35197
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user