jdk/test/java/util/NavigableMap/LockStep.java
changeset 43522 f9c6f543c4db
parent 32991 b27c76b82713
--- a/jdk/test/java/util/NavigableMap/LockStep.java	Fri Feb 03 13:24:59 2017 -0800
+++ b/jdk/test/java/util/NavigableMap/LockStep.java	Fri Feb 03 13:24:59 2017 -0800
@@ -753,7 +753,7 @@
 
         List<NavigableMap> maps = Arrays.asList(m1, m2);
         for (NavigableMap m : maps) testEmptyMap(m);
-        final Set<Integer> ints = new HashSet<Integer>();
+        final Set<Integer> ints = new HashSet<>();
         while (ints.size() < size)
             ints.add(rnd.nextInt(1024));
         final Integer[] elts = ints.toArray(new Integer[size]);
@@ -795,7 +795,7 @@
 
         List<NavigableSet> sets = Arrays.asList(s1, s2);
         for (NavigableSet s : sets) testEmptySet(s);
-        final Set<Integer> ints = new HashSet<Integer>();
+        final Set<Integer> ints = new HashSet<>();
         while (ints.size() < size)
             ints.add(rnd.nextInt(1024));
         final Integer[] elts = ints.toArray(new Integer[size]);