[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:
Daniil Ovchinnikov
2016-10-14 21:28:55 +03:00
parent 4ed1125ce7
commit 85013de183
@@ -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);
}