On Mon, 28 Apr 2025 17:15:34 GMT, ExE Boss <d...@openjdk.org> wrote:

>> Propose to finalize scoped values.
>> The only functional change is that the orElse() method no longer accepts a 
>> null argument.
>
> src/java.base/share/classes/java/lang/ScopedValue.java line 614:
> 
>> 612:      */
>> 613:     public T orElse(T other) {
>> 614:         Objects.requireNonNull(other);
> 
> Why was this change made?

> The only functional change is that the orElse() method no longer accepts a 
> null argument.

See https://mail.openjdk.org/pipermail/loom-dev/2025-April/007470.html for some 
history.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/24923#discussion_r2064142621

Reply via email to