resources.report.rules.pmd.IdempotentOperations.html Maven / Gradle / Ivy
IdempotentOperations
IdempotentOperations
Avoid idempotent operations - they have no effect.
This rule is defined by the following Java class: net.sourceforge.pmd.lang.java.rule.design.IdempotentOperationsRule
Example(s):
public class Foo {
public void bar() {
int x = 2;
x = x;
}
}