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.162 by dl, Wed Jan 16 15:04:03 2013 UTC vs.
Revision 1.163 by dl, Thu Jan 17 14:13:00 2013 UTC

# Line 2727 | Line 2727 | public class ConcurrentHashMap<K, V>
2727       * @throws NullPointerException if the specified key is null
2728       */
2729      public boolean remove(Object key, Object value) {
2730 +        if (key == null)
2731 +            throw new NullPointerException();
2732          return value != null && internalReplace(key, null, value) != null;
2733      }
2734  
# Line 4453 | Line 4455 | public class ConcurrentHashMap<K, V>
4455      /**
4456       * Base class for views.
4457       */
4458 <    static abstract class CHMView<K, V> {
4458 >    static abstract class CHMView<K, V> implements java.io.Serializable {
4459 >        private static final long serialVersionUID = 7249069246763182397L;
4460          final ConcurrentHashMap<K, V> map;
4461          CHMView(ConcurrentHashMap<K, V> map)  { this.map = map; }
4462  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines