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

Rule:  Basic2Checked automatically with code checker

Synopsis:Avoid empty 'if' statements
Language:Java
Severity Level:2
Category:Basic


Description:
Empty If Statement finds instances where a condition is checked but nothing is done about it.
public class Foo {
 void bar(int x) {
  if (x == 0) {
   // empty!
  }
 }
}