MethodArgumentCouldBeFinal

A method argument that is never assigned can be declared final.

This rule is defined by the following Java class: net.sourceforge.pmd.rules.optimization.MethodArgumentCouldBeFinal

Example:

                
  
public void foo (String param) {
  // do stuff with param never assigning it
  // better: public void foo (final String param) {
}