Fix pmd warnings.