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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentMap.java (file contents):
Revision 1.39 by jsr166, Fri Feb 15 22:20:46 2013 UTC vs.
Revision 1.40 by dl, Mon Mar 18 12:40:30 2013 UTC

# Line 62 | Line 62 | public interface ConcurrentMap<K,V> exte
62       * Removes the entry for a key only if currently mapped to a given value.
63       * This is equivalent to
64       *  <pre> {@code
65 <     * if (map.containsKey(key) && map.get(key).equals(value)) {
65 >     * if (map.containsKey(key) && Objects.equals(map.get(key), value)) {
66       *   map.remove(key);
67       *   return true;
68       * } else
# Line 88 | Line 88 | public interface ConcurrentMap<K,V> exte
88       * Replaces the entry for a key only if currently mapped to a given value.
89       * This is equivalent to
90       *  <pre> {@code
91 <     * if (map.containsKey(key) && map.get(key).equals(oldValue)) {
91 >     * if (map.containsKey(key) && Objects.equals(map.get(key), oldValue)) {
92       *   map.put(key, newValue);
93       *   return true;
94       * } else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines