On Mon, 28 Apr 2025 14:32:04 GMT, Andrew Haley <a...@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?

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

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

Reply via email to