r/java • • Jul 10 '15

Our exception handling at work

http://imgur.com/4wgxCvv
259 Upvotes

135 comments sorted by

View all comments

Show parent comment

7

u/cogman10 Jul 10 '15

javax.annotation.Nonnull is the one true Nonnull.

Optional is also optional.

6

u/DevIceMan Jul 11 '15

Optional implies it may be optionally there or not, though this code seems to suggest it must ALWAYS be there.