Synopsis: | Avoid idempotent operations (like assigning a variable to itself) |
Language: | Java |
Severity Level: | 2 |
Category: | Design |
Description: |
Avoid idempotent operations - they are have no effect.public class Foo { public void bar() { int x = 2; x = x; } } |