mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 14:17:48 +00:00
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:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user