News for hackers. Stuff that matters.
Re:Deprecating: java.util.Optional.get()? by gozur88 on Thursday April 28, 2016 @02:29PM (#11590939)
If someone has managed to bork the code with a harmless looking refactor, an NPE is what you want. The code is no longer working as designed and needs to be fixed.
Re:Deprecating: java.util.Optional.get()? by matt_kantor on Friday April 29, 2016 @03:20AM (#11594246)
Remember that in this scenario the alternative to an NPE is that the program doesn't even compile (because it won't type check).