mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
resolve performance: static import shadowing checks perform all conflicts check on each add (IDEA-83594)
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ public class MethodCandidatesProcessor extends MethodsProcessor{
|
||||
|
||||
protected boolean isShadowed(final PsiMethod candidate) {
|
||||
if (myCurrentFileContext instanceof PsiImportStaticStatement) {
|
||||
for (JavaResolveResult result : getResult()) {
|
||||
for (JavaResolveResult result : getResults()) {
|
||||
if (result.getElement() != candidate &&
|
||||
result.isAccessible() &&
|
||||
!(result.getCurrentFileResolveScope() instanceof PsiImportStaticStatement)) return true;
|
||||
|
||||
Reference in New Issue
Block a user