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.181 by jsr166, Mon Feb 11 17:40:59 2013 UTC vs.
Revision 1.182 by jsr166, Mon Feb 11 20:43:59 2013 UTC

# Line 4770 | Line 4770 | public class ConcurrentHashMap<K, V>
4770          }
4771  
4772          public final boolean add(Entry<K,V> e) {
4773 <            K key = e.getKey();
4774 <            V value = e.getValue();
4775 <            if (key == null || value == null)
4776 <                throw new NullPointerException();
4777 <            return map.internalPut(key, value, false) == null;
4773 >            return map.internalPut(e.getKey(), e.getValue(), false) == null;
4774          }
4775          public final boolean addAll(Collection<? extends Entry<K,V>> c) {
4776              boolean added = false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines