On Tue, 16 Jan 2024 07:40:44 GMT, John Hendrikx <jhendr...@openjdk.org> wrote:
> Update the documentation for `@return` tag of `putIfAbsent` to match the main > description. `putIfAbsent` uses the same wording as `put` for its `@return` > tag, but that is incorrect. `putIfAbsent` never returns the **previous** > value, as the whole point of the method is not the replace the value if it > was present. As such, if it returns a value, it is the **current** value, > and in all other cases it will return `null`. This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/17438