Performance pass 3 (Manual array to collection copy)

This commit is contained in:
Andrew 2020-10-15 22:44:30 -07:00
parent 335d4abbe1
commit 1e188fe737

View File

@ -382,10 +382,7 @@ public class KList<T> extends ArrayList<T> implements List<T>
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public KList<T> add(T... t) public KList<T> add(T... t)
{ {
for(T i : t) Collections.addAll(super, t);
{
super.add(i);
}
return this; return this;
} }