A static null-coalescing method

Mark Reinhold mark.reinhold at oracle.com
Tue Oct 29 14:23:42 UTC 2024


2024/10/28 15:40:55 -0400, Emre Kaplan <emr3kp at gmail.com>:
> I think java.util.Optional class should have a static method named like
> getOrDefault(Object o, Object default)

This discussion would be more appropriate on the core-libs-dev list.

- Mark


More information about the jdk-dev mailing list