TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - Java Coding Standard
Search

Rule:  Design20Checked automatically with code checker

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