pmd: fix #1089 When changing priority in a custom ruleset, violations reported twice