ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentHashMap8Test.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentHashMap8Test.java (file contents):
Revision 1.38 by dl, Tue Jan 26 13:33:05 2021 UTC vs.
Revision 1.39 by jsr166, Wed Jan 27 01:57:24 2021 UTC

# Line 37 | Line 37 | public class ConcurrentHashMap8Test exte
37       * Returns a new map from Items 1-5 to Strings "A"-"E".
38       */
39      private static ConcurrentHashMap<Item,String> map5() {
40 <        ConcurrentHashMap<Item,String> map = new ConcurrentHashMap<Item,String>(5);
40 >        ConcurrentHashMap<Item,String> map = new ConcurrentHashMap<>(5);
41          assertTrue(map.isEmpty());
42          map.put(one, "A");
43          map.put(two, "B");
# Line 556 | Line 556 | public class ConcurrentHashMap8Test exte
556  
557      static ConcurrentHashMap<Long, Long> longMap() {
558          if (longMap == null) {
559 <            longMap = new ConcurrentHashMap<Long, Long>(SIZE);
559 >            longMap = new ConcurrentHashMap<>(SIZE);
560              for (int i = 0; i < SIZE; ++i)
561                  longMap.put(Long.valueOf(i), Long.valueOf(2 *i));
562          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines