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.62 by jsr166, Thu Apr 30 18:53:51 2015 UTC vs.
Revision 1.63 by jsr166, Thu Apr 30 22:13:12 2015 UTC

# Line 195 | Line 195 | public interface ConcurrentMap<K,V> exte
195       * Replaces the entry for a key only if currently mapped to some value.
196       * This is equivalent to, for this {@code map}:
197       * <pre> {@code
198 <     * if (map.containsKey(key)) {
198 >     * if (map.containsKey(key))
199       *   return map.put(key, value);
200 <     * } else {
201 <     *   return null;
202 <     * }}</pre>
200 >     * else
201 >     *   return null;}</pre>
202       *
203       * except that the action is performed atomically.
204       *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines