mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] always return value from stub
Otherwise AST will be loaded for any annotation when annotation actually declares requested value.
This commit is contained in:
+1
-4
@@ -134,10 +134,7 @@ public class GrAnnotationImpl extends GrStubElementBase<GrAnnotationStub> implem
|
||||
final GrAnnotationStub stub = getStub();
|
||||
if (stub != null) {
|
||||
final GrAnnotation stubbedPsi = stub.getPsiElement();
|
||||
final PsiAnnotationMemberValue value = PsiImplUtil.findDeclaredAttributeValue(stubbedPsi, attributeName);
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
return PsiImplUtil.findDeclaredAttributeValue(stubbedPsi, attributeName);
|
||||
}
|
||||
return PsiImplUtil.findDeclaredAttributeValue(this, attributeName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user