Noel J. Bergman wrote:
Stefano Bagnara wrote:

As an example you added an addr.toString(): This could raise a NullPointerException.

LOL.  Amusingly, I actually had (addr == null) ? "null?" : addr.toString() in 
the original code, but removed it.  If that throws an NPE, there are other problems.

You know I already said that I reviewed the code and that I verified that addr could never be null, but this is not the point. The point is that this is a manual review and, like I already said, more dangerous than removing unused code.

Unfortunately NPE are not handled by the java compilers. It would be different if we were using Nice (http://nice.sourceforge.net/).

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to