diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/TPriorityQueue.java b/classlib/src/main/java/org/teavm/classlib/java/util/TPriorityQueue.java index b3af901cc..de808af8d 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/util/TPriorityQueue.java +++ b/classlib/src/main/java/org/teavm/classlib/java/util/TPriorityQueue.java @@ -83,6 +83,10 @@ public class TPriorityQueue extends TAbstractQueue implements TSerializabl version = 0; } + public TPriorityQueue(TComparator comparator) { + this(16, comparator); + } + public TPriorityQueue(int initialCapacity, TComparator comparator) { if (initialCapacity < 1) { throw new TIllegalArgumentException();