26.05.04
Whitespaces in debug/error statements
Everybody knows that tailing whitespaces can cause a lot of errors. But how to prevent it?
While working in Australia for MojoKnows Patrick developed a Java program for checking at least all property files for this.
Another thing I read in a book was to use a logging like:
log("Error with:'"+myporperty+"'.")
which will show something like:
Error with:'myporperty '.
where you can easily detect the fault.
Nice logging IMHO.
Copyright © 2003-2004 · · Karsten Voges · · All Rights Reserved. · · Impressum
