Fixed minor pmd violations.