mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
revert: don't try to remove cls annotations (EA-97810 - IOE: ClsElementImpl.cannotModifyException), normal non-Kotlin compiled element shouldn't end up here
This commit is contained in:
+1
-2
@@ -111,8 +111,7 @@ public class AddAnnotationPsiFix extends LocalQuickFixOnPsiElement {
|
||||
final PsiModifierListOwner myModifierListOwner = (PsiModifierListOwner)startElement;
|
||||
|
||||
// e.g. PsiTypeParameterImpl doesn't have modifier list
|
||||
return myModifierListOwner.isWritable() &&
|
||||
myModifierListOwner.getModifierList() != null
|
||||
return myModifierListOwner.getModifierList() != null
|
||||
&& !AnnotationUtil.isAnnotated(myModifierListOwner, myAnnotation, false, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user