# | Line 844 | Line 844 | public class ConcurrentHashMapTest exten | |
---|---|---|
844 | for (int i = 0; i < 100; i++) { // force a resize | |
845 | map.computeIfAbsent(i, key -> findValue(map, key)); | |
846 | } | |
847 | < | fail("recursive computeIfAbsent"); |
848 | < | } catch (IllegalStateException ex) { |
849 | < | } |
847 | > | fail("recursive computeIfAbsent should throw IllegalStateException"); |
848 | > | } catch (IllegalStateException success) {} |
849 | } | |
850 | ||
851 | private Integer findValue(ConcurrentHashMap<Integer, Integer> map, |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |