mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Merge branch 'master' of https://github.com/konsoletyper/teavm
This commit is contained in:
commit
50ac08fce4
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user