ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.296 by dl, Sun Jul 17 12:09:12 2016 UTC vs.
Revision 1.297 by jsr166, Mon Aug 22 18:38:27 2016 UTC

# 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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines