mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
refactor [java]: Replace get(0) with getFirst()
GitOrigin-RevId: 80a65ed64b4fc18c7337775ed352efc14e7ca934
This commit is contained in:
committed by
intellij-monorepo-bot
parent
69c5b75bd7
commit
efc599012f
@@ -48,7 +48,7 @@ public final class JavaPsiMethodUtil {
|
||||
}
|
||||
}
|
||||
if (defaults == null) return null;
|
||||
PsiMethod defaultMethod = defaults.get(0);
|
||||
PsiMethod defaultMethod = defaults.getFirst();
|
||||
PsiClass defaultMethodContainingClass = defaultMethod.getContainingClass();
|
||||
if (defaultMethodContainingClass == null) return null;
|
||||
if (abstractMethod == null) {
|
||||
@@ -62,7 +62,7 @@ public final class JavaPsiMethodUtil {
|
||||
return unrelatedCouple;
|
||||
}
|
||||
if (hasNotOverriddenAbstract(defaults, abstractMethodContainingClass)) {
|
||||
return Couple.of(defaults.get(0), abstractMethod);
|
||||
return Couple.of(defaults.getFirst(), abstractMethod);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user