Hi Grary,
Another useful tip to improve your code: I let PMD check the sources that I submitted (I did it afterwards, because I didn't know its existance) and it found approximately 250 violations (although i thought my code was just fine). But i didn't agree with all the violations (like the one that says
you should only have 1 return statement in a method). But it is certainly worth your while. And it has also various plugins for
IDE, so if you use it through an IDE you can indicate which rules must be checked and about which you don't care.
Kind regards,
Roel