It's not really a bug but I didn't find another way to send a patch. I've run
pmd on the code and fixed a few problems, mainly small optimizations. Here's a
list of the changes:
use of System.arraycopy instead of for loop
no need to check for null before instanceof
StringBuffer.append optimizations for single char Strings
Integer.valueOf(count).intValue() -> Integer.parseInt(count)
new Boolean(false) -> Boolean.FALSE, same for true
new Integer(i).toString() -> Integer.toString(i)
unused import clauses
s.lastIndexOf(".") -> s.lastIndexOf('.')
Xavier