Fixed PMD violations.