|
|
|
|
|
by The_Colonel
747 days ago
|
|
Unfortunately these pushers were not strong enough to get Java to add null-safety. "Everything can be null" is the by far biggest daily headache of working in Java codebases. JSR-305, checker framework, Optional are all half-baked workarounds evidenced by the lack of their adoption. |
|
I can’t remember the last time I encountered one by using the proper compile time checks. It does need to be enforced organization-wide, and not partially with annotations, but if you can make that change then you can code in Java without the mental overhead of null.