On Wed, 10 Jun 2026 20:21:05 GMT, Justin Lu <[email protected]> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Reflects review comments
>
> src/java.base/share/classes/java/time/temporal/TemporalAmount.java line 150:
>
>> 148: * dateTime = dateTime.plus(adder);
>> 149: * </pre>
>> 150: * It is recommended to use the second approach, {@code
>> plus(TemporalAmount)},
>
> I thought the original intent was to display the method signature type rather
> than the actual amount variable. That said, either way works.
Those types were actually leftovers from the previous commit. Because these are
code examples, I was trying to keep them consistent with the variables used.
The corresponding method signatures are documented a few lines earlier in each
example (e.g., line 144 in this case).
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/31464#discussion_r3391877379