On Thu, 8 May 2025 17:33:09 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. > > Andrew Haley has updated the pull request incrementally with one additional > commit since the last revision: > > Fix merge src/java.base/share/classes/java/lang/ScopedValue.java line 613: > 611: */ > 612: public T orElse(T other) { > 613: Objects.requireNonNull(other); Shouldn't the NPE be specified in the Javadoc? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24923#discussion_r2080181692