Refactor the PMD rules, and add the MissingOverride rule.

1 job for check-code-quality-with-pmd in 8 minutes and 32 seconds (queued for 2 seconds)