fix pmd warnings