--- jsr166/src/test/tck/ConcurrentHashMap8Test.java 2021/01/26 13:33:05 1.38 +++ jsr166/src/test/tck/ConcurrentHashMap8Test.java 2021/01/27 01:57:24 1.39 @@ -37,7 +37,7 @@ public class ConcurrentHashMap8Test exte * Returns a new map from Items 1-5 to Strings "A"-"E". */ private static ConcurrentHashMap map5() { - ConcurrentHashMap map = new ConcurrentHashMap(5); + ConcurrentHashMap map = new ConcurrentHashMap<>(5); assertTrue(map.isEmpty()); map.put(one, "A"); map.put(two, "B"); @@ -556,7 +556,7 @@ public class ConcurrentHashMap8Test exte static ConcurrentHashMap longMap() { if (longMap == null) { - longMap = new ConcurrentHashMap(SIZE); + longMap = new ConcurrentHashMap<>(SIZE); for (int i = 0; i < SIZE; ++i) longMap.put(Long.valueOf(i), Long.valueOf(2 *i)); }