This article was originally posted on JRoller on November 4, 2011.
If Shakespeare were a developer, his Hamlet class' comparison method would probably contain these lines:
if (obj == null)
return (this == null);
Found in our production code. The Java equivalent of "To be or not to be [null]".
No comments:
Post a Comment