Fixed some red PMD errors.