Fix Pmd violations.