--- jsr166/src/test/jtreg/util/Random/DistinctSeeds.java 2015/09/15 07:53:31 1.8 +++ jsr166/src/test/jtreg/util/Random/DistinctSeeds.java 2017/01/04 04:46:19 1.9 @@ -34,7 +34,7 @@ public class DistinctSeeds { } final int threadCount = 2; List collectors = new ArrayList<>(); - List threads = new ArrayList(); + List threads = new ArrayList<>(); for (int i = 0; i < threadCount; i++) { RandomCollector r = new RandomCollector(); collectors.add(r); @@ -45,7 +45,7 @@ public class DistinctSeeds { for (Thread thread : threads) thread.join(); int collisions = 0; - HashSet s = new HashSet(); + HashSet s = new HashSet<>(); for (RandomCollector r : collectors) { for (long x : r.randoms) { if (s.contains(x))