minor issue: Optional.empty().orElseThrow() - no message

Dmitry Bessonov dmitry.bessonov at oracle.com
Mon Feb 11 05:10:27 PST 2013


Method

j.u.Optional.orElseThrow(Class<V> exceptionClass)

says

"Exception will be thrown with the message "No value present"."

However thrown exception contains no message.

The same thing with OptionalDouble, OptionalInt, OptionalLong

-Dmitry



More information about the lambda-dev mailing list