--- 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<String> nullTolerantComparator
- = new Comparator<String>() {
+ = 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<String> nullPriorityQueue
- = new PriorityQueue<String>() {
+ = new PriorityQueue<>() {
public Object[] toArray() { return new Object[] { null };}};
final Collection<String> nullCollection = new ArrayList<>();