Erik threw up a post with the worst toString() method he’s ever run into… I have to admit, this is pretty incredible:
public String toString() {
if (this != null)
return “**** implement me”;
return “i am null”;
}
That is like set-yourself-on-fire-and-do-society-a-favor terrible. If this != null on a non-static method? Nice. Maybe the original developer should throw in some code to double check that the VM is running to?
If you program like this, please stop



















Leave a Reply