diff --git a/pmd-java/src/main/resources/category/java/codestyle.xml b/pmd-java/src/main/resources/category/java/codestyle.xml index 01b868afa7..867b911ed8 100644 --- a/pmd-java/src/main/resources/category/java/codestyle.xml +++ b/pmd-java/src/main/resources/category/java/codestyle.xml @@ -1034,17 +1034,27 @@ public class MissingTheProperSuffix implements SessionBean {} // non-standard class="net.sourceforge.pmd.lang.java.rule.codestyle.MethodArgumentCouldBeFinalRule" externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_codestyle.html#methodargumentcouldbefinal"> -A method argument that is never re-assigned within the method can be declared final. + Reports method and constructor parameters that can be made final because they are never reassigned within the body of the method. + + This rule ignores unused parameters so as not to overlap with the rule {% rule 'java/bestpractices/UnusedVariable' %}. + It will also ignore the parameters of abstract methods. 3