mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
process add enum annotations specifics (IDEA-94090)
This commit is contained in:
@@ -133,6 +133,9 @@ public class PsiAnnotationImpl extends JavaStubPsiElement<PsiAnnotationStub> imp
|
||||
|
||||
PsiAnnotationOwner typeElement;
|
||||
if (member instanceof PsiVariable) {
|
||||
if (member instanceof PsiEnumConstant && parent instanceof PsiAnnotationOwner){
|
||||
return (PsiAnnotationOwner)parent;
|
||||
}
|
||||
typeElement = ((PsiVariable)member).getTypeElement();
|
||||
}
|
||||
else if (member instanceof PsiMethod && !((PsiMethod)member).isConstructor()) {
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
enum E
|
||||
{
|
||||
@D
|
||||
VAR
|
||||
}
|
||||
|
||||
@interface D {
|
||||
}
|
||||
+1
@@ -169,4 +169,5 @@ public class LightAdvHighlightingJdk7Test extends LightDaemonAnalyzerTestCase {
|
||||
public void testUncheckedWarningIDEA70620() throws Exception { doTest(true, false); }
|
||||
public void testUncheckedWarningIDEA60166() throws Exception { doTest(true, false); }
|
||||
public void testUncheckedWarningIDEA21432() throws Exception { doTest(true, false); }
|
||||
public void testAnnotationApplicability() throws Exception { doTest(true, false); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user