Fix some PMD violations.