mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Another attempt to fix IDEA-26242 (Idea analyzes certain files in our project for a very long time, using tons of memory in the process.)
This commit is contained in:
+3
-5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2009 Dave Griffith, Bas Leijdekkers
|
||||
* Copyright 2003-2011 Dave Griffith, Bas Leijdekkers
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -155,8 +155,7 @@ public class DeclareCollectionAsInterfaceInspection extends BaseInspection {
|
||||
extends BaseInspectionVisitor {
|
||||
|
||||
@Override public void visitVariable(@NotNull PsiVariable variable) {
|
||||
if (isOnTheFly() &&
|
||||
variable.hasModifierProperty(PsiModifier.PUBLIC)) {
|
||||
if (isOnTheFly() && !isCheapEnoughToSearch(variable)) {
|
||||
return;
|
||||
}
|
||||
if (ignoreLocalVariables && variable instanceof PsiLocalVariable) {
|
||||
@@ -234,8 +233,7 @@ public class DeclareCollectionAsInterfaceInspection extends BaseInspection {
|
||||
method.hasModifierProperty(PsiModifier.PRIVATE)) {
|
||||
return;
|
||||
}
|
||||
if (isOnTheFly() &&
|
||||
method.hasModifierProperty(PsiModifier.PUBLIC)) {
|
||||
if (isOnTheFly() && !isCheapEnoughToSearch(method)) {
|
||||
return;
|
||||
}
|
||||
final PsiType type = method.getReturnType();
|
||||
|
||||
Reference in New Issue
Block a user