mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
minor optimization: prealloc collection
GitOrigin-RevId: 79fce444d2283b25b67dd2ebf3ef0056404d4633
This commit is contained in:
committed by
intellij-monorepo-bot
parent
00ad27e843
commit
e31cbdfc41
@@ -23,7 +23,9 @@ public class Stack<T> extends ArrayList<T> {
|
||||
super(init);
|
||||
}
|
||||
|
||||
@SafeVarargs
|
||||
public Stack(@NotNull T... items) {
|
||||
super(items.length);
|
||||
for (T item : items) {
|
||||
push(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user