mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
java: "Seal class" intention should not be available on annotation interface (IDEA-327298)
GitOrigin-RevId: 1051943ab071973c6ff462eb2270b2bc42c6393a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b01b60a8a2
commit
8b353e8997
@@ -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;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Seal class" "false"
|
||||
|
||||
public @interface An<caret>no { }
|
||||
Reference in New Issue
Block a user