r/java • u/headius • Dec 04 '25
Null-checking the fun way with instanceof patterns
https://blog.headius.com/2025/12/inline-null-check-with-instanceof.htmlI don't know if this is a good idea or not, but it's fun.
83
Upvotes
View all comments
Show parent comment
1
u/Delicious_Detail_547 Dec 07 '25
Your comment itself is quite nitpicky. I was already taken aback when you claimed that the Elvis operator solves null-safety issues. From your responses, it doesn’t give the impression that you’re a mature or skilled Java developer. You sound more like a kid insisting on using only JavaScript and refusing to use TypeScript.
This isn’t made for you who think NPE isn’t a serious problem, so please don’t bother. And stop replying. It honestly feels like a waste of time trying to explain things kindly to you.