mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
unrelated defaults: check if current class contains explicit method (IDEA-164732)
This commit is contained in:
+1
@@ -458,6 +458,7 @@ public class GenericsHighlightUtil {
|
||||
|
||||
if (!hasConcrete && defaults != null) {
|
||||
final PsiMethod defaultMethod = defaults.get(0);
|
||||
if (MethodSignatureUtil.findMethodBySuperMethod(aClass, defaultMethod, false) != null) continue;
|
||||
final PsiClass defaultMethodContainingClass = defaultMethod.getContainingClass();
|
||||
if (defaultMethodContainingClass == null) continue;
|
||||
final PsiMethod unrelatedMethod = abstracts != null ? abstracts.get(0) : defaults.get(1);
|
||||
|
||||
Reference in New Issue
Block a user