1 package com.google.checkstyle.test.chapter4formatting.rule462horizontalwhitespace; 2 3 /** some javadoc. */ 4 public class InputNoWhitespaceBeforeEmptyForLoop { 5 6 /** some javadoc. */ 7 public static void foo() { 8 for (; ; ) { // ok 9 break; 10 } 11 for (int x = 0; ; ) { // ok 12 break; 13 } 14 for (int x = 0 ; ; ) { // violation '';' is preceded with whitespace.' 15 break; 16 } 17 for (int x = 0; x < 10; ) { // ok 18 break; 19 } 20 for (int x = 0; x < 10 ; ) { // violation '';' is preceded with whitespace.' 21 break; 22 } 23 } 24 }