News for hackers. Stuff that matters.
Re:Deprecating: java.util.Optional.get()? by jdmichal on Friday April 29, 2016 @12:51PM (#11596980)
I do option (2) for every parameter in every non-private method in my Java code. I have a template in my IDE to write the check; all I do is invoke the template, type the variable name, and hit enter. I even document the throw in the javadoc comments. It's not hard, and it's the right thing to do.

There are no comments on this comment yet.