Updated to latest PMD (5.0.4).
Removed all findbugs / pmd / checkstyle violations.
Minor changes for performance.