Re:Java 7 : The new java.util.Objects class
by JulianMorrison on Friday April 02, 2010 @03:32PM
(#1237312)
Why not fix Java to have compile-time checked not-null types? Given that not-null is a strict subset of nullable, it wouldn't break code to annotate the standard library with not-nulls. Then we can avoid these run-time checks entirely.
Oh and while you're about it, please re-parent InterruptedException onto RuntimeException, and make Object's default toString method use reflection to print the contents of all fields in a readable format with recursive toString calls.
Oh and while you're about it, please re-parent InterruptedException onto RuntimeException, and make Object's default toString method use reflection to print the contents of all fields in a readable format with recursive toString calls.