fixed pmd warnings.