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.lang.java.rule.unusedcode.UnusedLocalVariableRule
Example(s):
public class Foo {
public void doSomething() {
int i = 5; // Unused
}
}