1 package com.google.checkstyle.test.chapter4formatting.rule462horizontalwhitespace; 2 3 /** some javadoc. */ 4 public class InputNoWhitespaceBeforeColonOfLabel { 5 6 { 7 label1 : // violation '':' is preceded with whitespace.' 8 for (int i = 0; i < 10; i++) { 9 } 10 } 11 12 /** some javadoc. */ 13 public void foo() { 14 label2: 15 while (true) { 16 } 17 } 18 }