Skip to content
Browse files
8258217: PriorityBlockingQueue constructor spec and behavior mismatch
Reviewed-by: dl
  • Loading branch information
Martin Buchholz committed Jan 10, 2021
1 parent 65ca5c6 commit 11d5b047913d95f28fe876a52d38fdab4e4e8153
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/java.base/share/classes/java/util/concurrent/
@@ -226,7 +226,7 @@ public PriorityBlockingQueue(int initialCapacity,
* Creates a {@code PriorityBlockingQueue} containing the elements
* in the specified collection. If the specified collection is a
* {@link SortedSet} or a {@link PriorityQueue}, this
* {@link SortedSet} or a {@link PriorityBlockingQueue}, this
* priority queue will be ordered according to the same ordering.
* Otherwise, this priority queue will be ordered according to the
* {@linkplain Comparable natural ordering} of its elements.

1 comment on commit 11d5b04


This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 11d5b04 Jan 10, 2021

Please sign in to comment.