global inspections: preallocate less memory for children

This commit is contained in:
peter
2013-09-14 10:27:27 +04:00
parent 7afff0e936
commit 3b8ee6f475
@@ -79,7 +79,7 @@ public abstract class RefEntityImpl implements RefEntity {
public void add(RefEntity child) {
if (myChildren == null) {
myChildren = new ArrayList<RefEntity>();
myChildren = new ArrayList<RefEntity>(1);
}
myChildren.add(child);