RFR: JDK-8323760 putIfAbsent documentation conflicts with itself [v2]
John Hendrikx
jhendrikx at openjdk.org
Tue Feb 13 17:11:05 UTC 2024
On Tue, 16 Jan 2024 13:27:31 GMT, Chen Liang <liach at openjdk.org> wrote:
>> Yeah, I wasn't sure about that, I can make it more specific, I used `considered` here because both unmapped keys and keys mapped to `null` are considered to be absent.
>
> I think `absent or {@code null}` is no less concise yet it is way more accurate than `considered absent`. So something like `@return {@code null} if the mapping for the specified key is absent or has a {@code null} value`?
I used your wording @liach but changed the sentence to past tense.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17438#discussion_r1488255726
More information about the core-libs-dev
mailing list