
resources.report.rules.pmd.UnusedLocalVariable.html Maven / Gradle / Ivy
UnusedLocalVariable
UnusedLocalVariable
Detects when a local variable is declared and/or assigned, but not used.
This rule is defined by the following Java class:
net.sourceforge.pmd.rules.UnusedLocalVariableRule
Example:
public class Foo {
public void doSomething() {
int i = 5; // Unused
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy