diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-09 02:45:54 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-10-09 02:45:54 +0200 |
commit | 681462f1f39d2e28da665a5551b742fc0b53a908 (patch) | |
tree | d49cd36c0045d3ebd875d646854aba69880bfb0b /src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java | |
parent | f7db5c02eba332c69971ad59b3543774ba25285d (diff) | |
download | lombok-681462f1f39d2e28da665a5551b742fc0b53a908.tar.gz lombok-681462f1f39d2e28da665a5551b742fc0b53a908.tar.bz2 lombok-681462f1f39d2e28da665a5551b742fc0b53a908.zip |
Also prevented generated nodes from being removed from ASTRewriter.
Diffstat (limited to 'src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java')
-rw-r--r-- | src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java index 7752bfb4..79e388f9 100644 --- a/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java @@ -77,6 +77,7 @@ public class EclipsePatcher { sm.addScript(ScriptBuilder.exitEarly() .target(new MethodTarget("org.eclipse.jdt.core.dom.rewrite.ASTRewrite", "replace")) + .target(new MethodTarget("org.eclipse.jdt.core.dom.rewrite.ASTRewrite", "remove")) .decisionMethod(new Hook("lombok/eclipse/agent/PatchFixes", "skipRewritingGeneratedNodes", "(Lorg/eclipse/jdt/core/dom/ASTNode;)Z")) .transplant().request(StackRequest.PARAM1).build()); |