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.

Posted by Karsten at 26.05.04 21:23 | TrackBack