# | Line 838 | Line 838 | public class ConcurrentHashMapTest exten | |
---|---|---|
838 | assertEquals(mapSize, map.size()); | |
839 | } | |
840 | ||
841 | – | |
842 | – | |
841 | public void testReentrantComputeIfAbsent() { | |
842 | ConcurrentHashMap<Integer, Integer> map = new ConcurrentHashMap<>(16); | |
843 | try { | |
# | Line 856 | Line 854 | public class ConcurrentHashMapTest exten | |
854 | return (key % 5 == 0) ? key : | |
855 | map.computeIfAbsent(key + 1, k -> findValue(map, k)); | |
856 | } | |
857 | < | |
857 | > | |
858 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |