RFR : 6799426 : (xs) Add constructor PriorityQueue(Comparator)
Paul Benedict
pbenedict at apache.org
Mon Jul 22 21:00:13 UTC 2013
Mike,
I know the description is pulled from the previous constructor, but both
sound a bit awkward. Both can probably benefit from an improvement.
Currently:
"Creates a {@code PriorityQueue} with the default initial capacity that
orders its elements according to the specified comparator."
Depending on one's spoken emphasis, it can sound as if the capacity is the
one causing the elements to be ordered.
Suggestion:
"Creates a {@code PriorityQueue} with the default initial capacity and
whose elements are ordered according to the specified comparator."
Cheers,
Paul
More information about the core-libs-dev
mailing list