mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
-foo():void
|
||||
-$1
|
||||
-toString():String
|
||||
-Anonymous
|
||||
-$1
|
||||
[method():void]
|
||||
num1:int
|
||||
num2:int
|
||||
@@ -184,11 +184,13 @@ public class ExtensionDomExtender extends DomExtender<Extensions> {
|
||||
@Nullable
|
||||
private static PsiAnnotation findAnnotation(final Class<?> annotationClass, PsiMember... members) {
|
||||
for (PsiMember member : members) {
|
||||
final PsiModifierList modifierList = member.getModifierList();
|
||||
if (modifierList != null) {
|
||||
final PsiAnnotation annotation = modifierList.findAnnotation(annotationClass.getName());
|
||||
if (annotation != null) {
|
||||
return annotation;
|
||||
if (member != null) {
|
||||
final PsiModifierList modifierList = member.getModifierList();
|
||||
if (modifierList != null) {
|
||||
final PsiAnnotation annotation = modifierList.findAnnotation(annotationClass.getName());
|
||||
if (annotation != null) {
|
||||
return annotation;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user