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

Rule:  Basic8Checked automatically with code checker

Synopsis:This for loop could be simplified to a while loop
Language:Java
Severity Level:4
Category:Basic


Description:
Some for loops can be simplified to while loops - this makes them more concise.
public class Foo {
 void bar() {
  for (;true;) {
   // No Init or Update part, may as well be: while (true)
  }
 }
}