aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Eichhorn <peichhor@web.de>2012-07-18 19:53:29 +0200
committerPhilipp Eichhorn <peichhor@web.de>2012-07-18 19:53:29 +0200
commit98c704c7cb4b21d0d6e11f55c52da89cb7c22502 (patch)
tree65e7c557d04539000b0542ac5a72591b5681e265
parent555bdfd52ffddcf01b444fb2802cdf9f486e0f87 (diff)
downloadlombok-98c704c7cb4b21d0d6e11f55c52da89cb7c22502.tar.gz
lombok-98c704c7cb4b21d0d6e11f55c52da89cb7c22502.tar.bz2
lombok-98c704c7cb4b21d0d6e11f55c52da89cb7c22502.zip
Lombok not longer removes the feature annotations and the import declarations of said annotations when running in Netbeans. This solves another batch of usability issues in Netbeans.
-rw-r--r--src/core/lombok/javac/handlers/JavacHandlerUtil.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lombok/javac/handlers/JavacHandlerUtil.java b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
index ce7421b1..fcafb88e 100644
--- a/src/core/lombok/javac/handlers/JavacHandlerUtil.java
+++ b/src/core/lombok/javac/handlers/JavacHandlerUtil.java
@@ -250,6 +250,7 @@ public class JavacHandlerUtil {
* Only does this if the DeleteLombokAnnotations class is in the context.
*/
public static void deleteAnnotationIfNeccessary(JavacNode annotation, Class<? extends Annotation> annotationType) {
+ if (inNetbeansEditor(annotation)) return;
if (!annotation.shouldDeleteLombokAnnotations()) return;
JavacNode parentNode = annotation.directUp();
switch (parentNode.getKind()) {
@@ -280,6 +281,7 @@ public class JavacHandlerUtil {
}
public static void deleteImportFromCompilationUnit(JavacNode node, String name) {
+ if (inNetbeansEditor(node)) return;
if (!node.shouldDeleteLombokAnnotations()) return;
ListBuffer<JCTree> newDefs = ListBuffer.lb();