mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JavaOverridingMethodsSearcher: be shorter and more explanatory
This commit is contained in:
+3
-4
@@ -73,10 +73,9 @@ public class JavaOverridingMethodsSearcher implements QueryExecutor<PsiMethod, O
|
||||
|
||||
@NotNull
|
||||
private static MethodSignature getSuperSignature(PsiClass inheritor, @NotNull PsiClass parentClass, PsiMethod method) {
|
||||
PsiSubstitutor substitutor = inheritor.isInheritor(parentClass, true) ?
|
||||
TypeConversionUtil.getSuperClassSubstitutor(parentClass, inheritor, PsiSubstitutor.EMPTY) :
|
||||
PsiSubstitutor.EMPTY;
|
||||
return method.getSignature(substitutor);
|
||||
PsiSubstitutor substitutor = TypeConversionUtil.getMaybeSuperClassSubstitutor(parentClass, inheritor, PsiSubstitutor.EMPTY, null);
|
||||
// if null, we have EJB custom inheritance here and still check overriding
|
||||
return method.getSignature(substitutor != null ? substitutor : PsiSubstitutor.EMPTY);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user