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.

This commit is contained in:
Philipp Eichhorn committed 2012-07-18 19:53:29 +02:00
1 parent 555bdfd52f
commit 98c704c7cb
1 file changed
+2
@@ -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();