diff -r 60e247b8d9a4 -r f9c6f543c4db jdk/test/java/util/PriorityQueue/NoNulls.java --- a/jdk/test/java/util/PriorityQueue/NoNulls.java Fri Feb 03 13:24:59 2017 -0800 +++ b/jdk/test/java/util/PriorityQueue/NoNulls.java Fri Feb 03 13:24:59 2017 -0800 @@ -51,7 +51,7 @@ public class NoNulls { void test(String[] args) throws Throwable { final Comparator nullTolerantComparator - = new Comparator() { + = new Comparator<>() { public int compare(String x, String y) { return (x == null ? -1 : y == null ? 1 : @@ -63,7 +63,7 @@ nullSortedSet.add(null); final PriorityQueue nullPriorityQueue - = new PriorityQueue() { + = new PriorityQueue<>() { public Object[] toArray() { return new Object[] { null };}}; final Collection nullCollection = new ArrayList<>();