From 3b8ee6f475307fc79555bb09875d16ea954eeb91 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 14 Sep 2013 10:26:24 +0400 Subject: [PATCH] global inspections: preallocate less memory for children --- .../com/intellij/codeInspection/reference/RefEntityImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefEntityImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefEntityImpl.java index 4d792afe810b..6b0bb66018fc 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefEntityImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/reference/RefEntityImpl.java @@ -79,7 +79,7 @@ public abstract class RefEntityImpl implements RefEntity { public void add(RefEntity child) { if (myChildren == null) { - myChildren = new ArrayList(); + myChildren = new ArrayList(1); } myChildren.add(child);