# | Line 4537 | Line 4537 | public class ConcurrentHashMap<K,V> exte | |
---|---|---|
4537 | boolean modified = false; | |
4538 | // Use (c instanceof Set) as a hint that lookup in c is as | |
4539 | // efficient as this view | |
4540 | < | if (c instanceof Set<?> && c.size() > map.table.length) { |
4540 | > | Node<K,V>[] t; |
4541 | > | if ((t = map.table) == null) { |
4542 | > | return false; |
4543 | > | } else if (c instanceof Set<?> && c.size() > t.length) { |
4544 | for (Iterator<?> it = iterator(); it.hasNext(); ) { | |
4545 | if (c.contains(it.next())) { | |
4546 | it.remove(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |