update pmd rules

check for unused parameters now checks public methods
as well