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.60 by jsr166, Thu Apr 30 18:47:12 2015 UTC vs.
Revision 1.61 by jsr166, Thu Apr 30 18:50:22 2015 UTC

# Line 132 | Line 132 | public interface ConcurrentMap<K,V> exte
132       * Removes the entry for a key only if currently mapped to a given value.
133       * This is equivalent to, for this {@code map}:
134       * <pre> {@code
135 <     * if (map.containsKey(key) && Objects.equals(map.get(key), value)) {
135 >     * if (map.containsKey(key)
136 >     *     && Objects.equals(map.get(key), value)) {
137       *   map.remove(key);
138       *   return true;
139       * } else {
# Line 162 | Line 163 | public interface ConcurrentMap<K,V> exte
163       * Replaces the entry for a key only if currently mapped to a given value.
164       * This is equivalent to, for this {@code map}:
165       * <pre> {@code
166 <     * if (map.containsKey(key) && Objects.equals(map.get(key), oldValue)) {
166 >     * if (map.containsKey(key)
167 >     *     && Objects.equals(map.get(key), oldValue)) {
168       *   map.put(key, newValue);
169       *   return true;
170       * } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines