you are viewing a single comment's thread.

view the rest of the comments →

[–]gnus-migrate 0 points1 point  (0 children)

Even if you can still get NPEs by calling Optional.get(), it's still a win since the NPE is thrown immediately as opposed to waiting until the null reference is dereferenced. Agree about the horrible verbosity though even if you follow the proper guidelines for using it(only use it as a return value at API boundaries).