From 9201d1685377e3d72359e692e8522b25acc7984e Mon Sep 17 00:00:00 2001 From: Ivan Hetman Date: Sun, 2 Apr 2023 20:23:18 +0300 Subject: [PATCH] classlib: add missing constructor to PriorityQueue (#680) --- .../java/org/teavm/classlib/java/util/TPriorityQueue.java | 4 ++++ 1 file changed, 4 insertions(+) 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();