diff options
author | Jappe van der Hel <jappe.vanderhel@gmail.com> | 2012-01-03 21:19:22 +0100 |
---|---|---|
committer | Jappe van der Hel <jappe.vanderhel@gmail.com> | 2012-01-03 21:19:22 +0100 |
commit | 0095cbbf9ad99def9b0a3ae32d08055c3aa55a97 (patch) | |
tree | 9a5d9add1ff078dc60810a0de1f0acb51af69eb3 /src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | |
parent | 207edfbc7f2a97f8844652d53db0df9d8b404d09 (diff) | |
download | lombok-0095cbbf9ad99def9b0a3ae32d08055c3aa55a97.tar.gz lombok-0095cbbf9ad99def9b0a3ae32d08055c3aa55a97.tar.bz2 lombok-0095cbbf9ad99def9b0a3ae32d08055c3aa55a97.zip |
extract interface now also works on inner types and side types (annotated with @Data)
comments for generated methods are now skipped
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java index 3b4633a2..b773e3be 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java @@ -113,13 +113,20 @@ public class EclipsePatcher extends Agent { .replacementMethod(new Hook("lombok.eclipse.agent.PatchFixes", "getRealMethodDeclarationNode", "org.eclipse.jdt.core.dom.MethodDeclaration", "org.eclipse.jdt.core.IMethod", "org.eclipse.jdt.core.dom.CompilationUnit")) .build()); - /* Do not add @Override's for generated methods */ + /* Do not add @Override's for generated methods */ sm.addScript(ScriptBuilder.exitEarly() .target(new MethodTarget("org.eclipse.jdt.core.dom.rewrite.ListRewrite", "insertFirst")) .decisionMethod(new Hook("lombok.eclipse.agent.PatchFixes", "isListRewriteOnGeneratedNode", "boolean", "org.eclipse.jdt.core.dom.rewrite.ListRewrite")) .request(StackRequest.THIS) .build()); + /* Do not add comments for generated methods */ + sm.addScript(ScriptBuilder.exitEarly() + .target(new MethodTarget("org.eclipse.jdt.internal.corext.refactoring.structure.ExtractInterfaceProcessor", "createMethodComment")) + .decisionMethod(new Hook("lombok.eclipse.agent.PatchFixes", "isGenerated", "boolean", "org.eclipse.jdt.core.dom.ASTNode")) + .request(StackRequest.PARAM2) + .build()); + } private static void patchSyntaxAndOccurrencesHighlighting(ScriptManager sm) { |