diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/TArrayList.java b/classlib/src/main/java/org/teavm/classlib/java/util/TArrayList.java index 614f35921..094801130 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/util/TArrayList.java +++ b/classlib/src/main/java/org/teavm/classlib/java/util/TArrayList.java @@ -84,6 +84,14 @@ public class TArrayList extends TAbstractList implements TCloneable, TSeri return old; } + @Override + public boolean add(E element) { + ensureCapacity(size + 1); + array[size++] = element; + ++modCount; + return true; + } + @Override public void add(int index, E element) { checkIndexForAdd(index);