java: "Seal class" intention should not be available on annotation interface (IDEA-327298)

GitOrigin-RevId: 1051943ab071973c6ff462eb2270b2bc42c6393a
This commit is contained in:
Bas Leijdekkers
2023-08-02 15:43:43 +02:00
committed by intellij-monorepo-bot
parent b01b60a8a2
commit 8b353e8997
2 changed files with 4 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ public class SealClassAction extends PsiUpdateModCommandAction<PsiClass> {
if (lBrace == null) return false;
if (offset >= lBrace.getTextRange().getStartOffset()) return false;
if (aClass.hasModifierProperty(PsiModifier.SEALED)) return false;
if (aClass.isAnnotationType()) return false;
if (aClass.getPermitsList() != null) return false;
if (aClass.getModifierList() == null) return false;
if (aClass.hasModifierProperty(PsiModifier.FINAL)) return false;

View File

@@ -0,0 +1,3 @@
// "Seal class" "false"
public @interface An<caret>no { }