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

Rule:  Basic16Checked automatically with code checker

Synopsis:Do not use 'if' statements that are always true or always false
Language:Java
Severity Level:3
Category:Basic


Description:
Do not use "if" statements that are always true or always false.
public class Foo {
 public void close() {
  if (true) {
       // ...
   }
 }
}