RFR: 8355022: Implement JEP 506: Scoped Values [v7]
Petr Portnov | PROgrm_JARvis
duke at openjdk.org
Thu May 8 17:49:59 UTC 2025
On Thu, 8 May 2025 17:33:09 GMT, Andrew Haley <aph at 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
More information about the compiler-dev
mailing list