ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166e/ConcurrentHashMapV8.java
(Generate patch)

Comparing jsr166/src/jsr166e/ConcurrentHashMapV8.java (file contents):
Revision 1.96 by jsr166, Mon Feb 11 17:40:59 2013 UTC vs.
Revision 1.97 by jsr166, Mon Feb 11 20:43:59 2013 UTC

# Line 4870 | Line 4870 | public class ConcurrentHashMapV8<K, V>
4870          }
4871  
4872          public final boolean add(Entry<K,V> e) {
4873 <            K key = e.getKey();
4874 <            V value = e.getValue();
4875 <            if (key == null || value == null)
4876 <                throw new NullPointerException();
4877 <            return map.internalPut(key, value, false) == null;
4873 >            return map.internalPut(e.getKey(), e.getValue(), false) == null;
4874          }
4875          public final boolean addAll(Collection<? extends Entry<K,V>> c) {
4876              boolean added = false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines