mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
SOE in ClsMethod.getNavigationElement
This commit is contained in:
@@ -341,7 +341,7 @@ public class ClsMethodImpl extends ClsRepositoryPsiElement<PsiMethodStub> implem
|
||||
if (sourceClassMirror == null) return this;
|
||||
final PsiMethod[] methodsByName = sourceClassMirror.findMethodsByName(getName(), false);
|
||||
for (PsiMethod sourceMethod : methodsByName) {
|
||||
if (MethodSignatureUtil.areParametersErasureEqual(this, sourceMethod)) {
|
||||
if (MethodSignatureUtil.areParametersErasureEqual(this, sourceMethod) && sourceMethod != this) {
|
||||
return sourceMethod.getNavigationElement();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user