
resources.report.rules.pmd.MethodArgumentCouldBeFinal.html Maven / Gradle / Ivy
MethodArgumentCouldBeFinal
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) {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy