--- a/jdk/src/share/classes/java/util/PriorityQueue.java Mon Jul 22 15:26:11 2013 +0100
+++ b/jdk/src/share/classes/java/util/PriorityQueue.java Mon Jul 22 12:59:09 2013 -0700
@@ -136,6 +136,19 @@
}
/**
+ * Creates a {@code PriorityQueue} with the default initial capacity
+ * that orders its elements according to the specified comparator.
+ *
+ * @param comparator the comparator that will be used to order this
+ * priority queue. If {@code null}, the {@linkplain Comparable
+ * natural ordering} of the elements will be used.
+ * @since 1.8
+ */
+ public PriorityQueue(Comparator<? super E> comparator) {
+ this(DEFAULT_INITIAL_CAPACITY, comparator);
+ }
+
+ /**
* Creates a {@code PriorityQueue} with the specified initial capacity
* that orders its elements according to the specified comparator.
*