All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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
	}
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy