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.61 by jsr166, Thu Apr 30 18:50:22 2015 UTC vs.
Revision 1.62 by jsr166, Thu Apr 30 18:53:51 2015 UTC

# Line 231 | Line 231 | public interface ConcurrentMap<K,V> exte
231       * <p>The default implementation is equivalent to, for this {@code map}:
232       * <pre> {@code
233       * for (Map.Entry<K,V> entry : map.entrySet()) {
234 +     *   K k;
235 +     *   V v;
236       *   do {
237 <     *     K k = entry.getKey();
238 <     *     V v = entry.getValue();
239 <     *   } while (!replace(k, v, function.apply(k, v)));
237 >     *     k = entry.getKey();
238 >     *     v = entry.getValue();
239 >     *   } while (!map.replace(k, v, function.apply(k, v)));
240       * }}</pre>
241       *
242       * The default implementation may retry these steps when multiple

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines