RFR(s): 8140281 add no-arg Optional.orElseThrow() as preferred alternative to get()
Alan Bateman
Alan.Bateman at oracle.com
Fri Dec 8 09:10:15 UTC 2017
On 08/12/2017 00:33, Stuart Marks wrote:
> Hi all,
>
> Please review this changeset that introduces a new no-arg method
> orElseThrow() to Optional, as a preferred alternative to the get()
> method.
>
This looks good. The naming is consistent and I think better than the
"getWhenPresent" proposed in the original thread.
-Alan
More information about the core-libs-dev
mailing list