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

Comparing jsr166/src/test/tck/ConcurrentHashMapTest.java (file contents):
Revision 1.63 by dl, Tue Jan 26 13:33:05 2021 UTC vs.
Revision 1.64 by jsr166, Tue Jan 26 18:03:27 2021 UTC

# Line 850 | Line 850 | public class ConcurrentHashMapTest exten
850          } catch (IllegalStateException success) {}
851      }
852  
853 <    static private Item findValue(ConcurrentHashMap<Item, Item> map,
853 >    private static Item findValue(ConcurrentHashMap<Item, Item> map,
854                                    Item key) {
855          return (key.value % 5 == 0) ?  key :
856              map.computeIfAbsent(new Item(key.value + 1), k -> new Item(findValue(map, k)));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines