mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
[lombok] IDEA-302513 fix usage with lombok producing IncorrectOperationException
GitOrigin-RevId: 6dc7b9e1c13a988dbeff3fc1f01d564a3e6df290
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e9944353c1
commit
e2eaabf6b8
@@ -78,6 +78,7 @@ public class ExtendsListFix extends LocalQuickFixAndIntentionActionOnPsiElement
|
||||
PsiClass classToExtendFrom = myClassToExtendFromPointer != null ? myClassToExtendFromPointer.getElement() : null;
|
||||
return
|
||||
BaseIntentionAction.canModify(myClass)
|
||||
&& startElement.isPhysical()
|
||||
&& classToExtendFrom != null
|
||||
&& classToExtendFrom.isValid()
|
||||
&& !classToExtendFrom.hasModifierProperty(PsiModifier.FINAL)
|
||||
@@ -85,7 +86,6 @@ public class ExtendsListFix extends LocalQuickFixAndIntentionActionOnPsiElement
|
||||
|| !myClass.isInterface()
|
||||
&& myClass.getExtendsList() != null
|
||||
&& (myClass.getExtendsList().getReferencedTypes().length == 0) == myToAdd);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user