mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
global inspections: preallocate less memory for children
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user