This commit is contained in:
Alexey Andreev 2016-08-18 21:34:56 +03:00
commit 50ac08fce4

View File

@ -53,7 +53,7 @@ public class TArrayList<E> extends TAbstractList<E> implements TCloneable, TSeri
public void ensureCapacity(int minCapacity) {
if (array.length < minCapacity) {
array = TArrays.copyOf(array, array.length + TMath.min(5, array.length / 2));
array = TArrays.copyOf(array, array.length + TMath.max(5, array.length / 2));
}
}