Skip to content
Permalink
Browse files
8243655: Map.replace javadoc code snippet typo
Replace 'value' with 'oldValue' in Map.replace(K, V, V) javadoc

Reviewed-by: jlaskey, martin, prappo, jboes
  • Loading branch information
c-cleary authored and FrauBoes committed Jun 10, 2020
1 parent b4d09cc commit 0e770d1e3f1b7bc38eab8c4af0b0e3e3c89167f4
Showing 1 changed file with 1 addition and 1 deletion.
@@ -829,7 +829,7 @@ default boolean remove(Object key, Object value) {
* The default implementation is equivalent to, for this {@code map}:
*
* <pre> {@code
* if (map.containsKey(key) && Objects.equals(map.get(key), value)) {
* if (map.containsKey(key) && Objects.equals(map.get(key), oldValue)) {
* map.put(key, newValue);
* return true;
* } else

0 comments on commit 0e770d1

Please sign in to comment.