aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-12-19 11:44:31 +0100
committerRawi01 <Rawi01@users.noreply.github.com>2020-12-20 14:03:28 +0100
commit626c33255bbac12ddab72dda7de2447132f29ae4 (patch)
tree2d4ad6ba4229cf9a6feb1e4c6c81286ab29ae702 /src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
parentf17dd036384242971546bc443749ad527b8cd21c (diff)
downloadlombok-626c33255bbac12ddab72dda7de2447132f29ae4.tar.gz
lombok-626c33255bbac12ddab72dda7de2447132f29ae4.tar.bz2
lombok-626c33255bbac12ddab72dda7de2447132f29ae4.zip
[tests] Support javadoc in ecj tests
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
index d5077b86..171fa8a9 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
@@ -916,7 +916,7 @@ public class EclipsePatcher implements AgentLauncher.AgentLaunchable {
.requestExtra(StackRequest.PARAM1)
.build());
- sm.addScriptIfWitness(OSGI_TYPES, ScriptBuilder.replaceMethodCall()
+ sm.addScript(ScriptBuilder.replaceMethodCall()
.target(new MethodTarget("org.eclipse.jdt.internal.compiler.ast.TypeDeclaration", "printBody", "java.lang.StringBuffer", "int", "java.lang.StringBuffer"))
.methodToReplace(new Hook("org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration", "print", "java.lang.StringBuffer", "int", "java.lang.StringBuffer"))
.replacementMethod(new Hook("lombok.launch.PatchFixesHider$Javadoc", "printMethod", "java.lang.StringBuffer", "org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration", "int", "java.lang.StringBuffer", "org.eclipse.jdt.internal.compiler.ast.TypeDeclaration"))