aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/lombok/eclipse
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-10-09 02:45:54 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-10-09 02:45:54 +0200
commit681462f1f39d2e28da665a5551b742fc0b53a908 (patch)
treed49cd36c0045d3ebd875d646854aba69880bfb0b /src_eclipseagent/lombok/eclipse
parentf7db5c02eba332c69971ad59b3543774ba25285d (diff)
downloadlombok-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')
-rw-r--r--src_eclipseagent/lombok/eclipse/agent/EclipsePatcher.java1
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());