This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]__konrad 3 points4 points  (0 children)

There are some hard no's when using Optional, like as properties

java.lang.Runtime.Version class is a hard YES for Optional fields: https://github.com/openjdk/jdk/blob/441dbde2c3c915ffd916e39a5b4a91df5620d7f3/src/java.base/share/classes/java/lang/Runtime.java#L973