mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-60793 Language Injection on annotation parameter
This commit is contained in:
+2
-1
@@ -274,7 +274,8 @@ public class JavaLanguageInjectionSupport extends AbstractLanguageInjectionSuppo
|
||||
if (referenceElement != null) {
|
||||
PsiElement resolved = referenceElement.resolve();
|
||||
if (resolved != null) {
|
||||
PsiMethod[] methods = ((PsiClass)resolved).findMethodsByName(((PsiNameValuePair)parent).getName(), false);
|
||||
final String name = ((PsiNameValuePair)parent).getName();
|
||||
PsiMethod[] methods = ((PsiClass)resolved).findMethodsByName(name == null? PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME : name, false);
|
||||
if (methods.length == 1) {
|
||||
return methods[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user