1 package com.google.checkstyle.test.chapter4formatting.rule42blockindentation; 2 3 /** Some javadoc. */ 4 public class InputIndentationCodeBlocks { 5 private static void test(int condition) { 6 { 7 System.out.println("True"); 8 } 9 } 10 11 { 12 System.out.println("False"); 13 } 14 15 { // violation ''block lcurly' has incorrect indentation level 4, expected level should be 2.' 16 System.out.println("False"); // violation '.* incorrect indentation level 6, expected .* 4.' 17 } // violation ''block rcurly' has incorrect indentation level 4, expected level should be 2.' 18 19 class Inner { 20 void test() { 21 { 22 System.out.println("True"); 23 } 24 } 25 } 26 }