update pmd, checkstyle; fix pmd warnings