resources.report.rules.findbugs.SA_LOCAL_DOUBLE_ASSIGNMENT.html Maven / Gradle / Ivy
SA_LOCAL_DOUBLE_ASSIGNMENT
SA: Double assignment of local variable (SA_LOCAL_DOUBLE_ASSIGNMENT)
This method contains a double assignment of a local variable; e.g.
public void foo() {
int x,y;
x = x = 17;
}
Assigning the same value to a variable twice is useless, and may indicate a logic error or typo.