I just inherited a bunch of code from another developer, and our company established some new code style rules. So now I have 300 pmd errors saying: "The parameter" blablahlblah "is not assigned and can be declared final." I really don't want to do all this manually, and I just need to put a “final” modifier in front of every variable that causes this pmd error. Is there any simple way to do this, besides writing some script, to consume pmd output and modify the source files accordingly? I use IntelliJ too. Maybe this can help me?
source
share