mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEADEV-41805 (Idea analyzes certain files in our project for a very long time, using tons of memory in the process)
This commit is contained in:
+6
@@ -153,6 +153,9 @@ public class DeclareCollectionAsInterfaceInspection extends BaseInspection {
|
||||
extends BaseInspectionVisitor {
|
||||
|
||||
@Override public void visitVariable(@NotNull PsiVariable variable) {
|
||||
if (isOnTheFly() && variable.hasModifierProperty(PsiModifier.PUBLIC)) {
|
||||
return;
|
||||
}
|
||||
if (ignoreLocalVariables && variable instanceof PsiLocalVariable) {
|
||||
return;
|
||||
}
|
||||
@@ -228,6 +231,9 @@ public class DeclareCollectionAsInterfaceInspection extends BaseInspection {
|
||||
method.hasModifierProperty(PsiModifier.PRIVATE)) {
|
||||
return;
|
||||
}
|
||||
if (isOnTheFly() && method.hasModifierProperty(PsiModifier.PUBLIC)) {
|
||||
return;
|
||||
}
|
||||
final PsiType type = method.getReturnType();
|
||||
if (type == null || !CollectionUtils.isCollectionClass(type)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user