mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove redundant check for enum (implicitly check by modifiers)
GitOrigin-RevId: 930ad08a7a298acf7c658e88ade9df915df7a7ec
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6a4708c97a
commit
79938e9f8c
@@ -60,7 +60,6 @@ public class SealClassAction extends BaseElementAtCaretIntentionAction {
|
||||
if (aClass.getPermitsList() != null) return false;
|
||||
if (aClass.getModifierList() == null) return false;
|
||||
if (aClass.hasModifierProperty(PsiModifier.FINAL)) return false;
|
||||
if (aClass.isEnum()) return false;
|
||||
if (PsiUtil.isLocalOrAnonymousClass(aClass)) return false;
|
||||
if (!(aClass.getContainingFile() instanceof PsiJavaFile)) return false;
|
||||
return !aClass.hasAnnotation(CommonClassNames.JAVA_LANG_FUNCTIONAL_INTERFACE);
|
||||
|
||||
Reference in New Issue
Block a user