jdk/test/java/util/PriorityQueue/NoNulls.java
changeset 8580 d1585a92e376
parent 5506 202f599c92aa
child 9242 ef138d47df58
--- a/jdk/test/java/util/PriorityQueue/NoNulls.java	Mon Mar 07 14:14:37 2011 -0800
+++ b/jdk/test/java/util/PriorityQueue/NoNulls.java	Tue Mar 08 10:32:18 2011 +0000
@@ -53,7 +53,7 @@
 public class NoNulls {
     void test(String[] args) throws Throwable {
         final Comparator<String> nullTolerantComparator
-            = new Comparator<>() {
+            = new Comparator<String>() {
             public int compare(String x, String y) {
                 return (x == null ? -1 :
                         y == null ? 1 :
@@ -65,7 +65,7 @@
         nullSortedSet.add(null);
 
         final PriorityQueue<String> nullPriorityQueue
-            = new PriorityQueue<>() {
+            = new PriorityQueue<String>() {
             public Object[] toArray() { return new Object[] { null };}};
 
         final Collection<String> nullCollection = new ArrayList<>();