mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8243655: Map.replace javadoc code snippet typo
Replace 'value' with 'oldValue' in Map.replace(K, V, V) javadoc Reviewed-by: jlaskey, martin, prappo, jboes
This commit is contained in:
parent
b4d09cc9e4
commit
0e770d1e3f
1 changed files with 1 additions and 1 deletions
|
@ -829,7 +829,7 @@ public interface Map<K, V> {
|
|||
* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue