1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="LeftCurly"/> 5 </module> 6 </module> 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.blocks.leftcurly; 10 11 // xdoc section -- start 12 class Example1 13 { // violation, ''{' at column 1 should be on the previous line.' 14 private interface TestInterface 15 { // violation, ''{' at column 3 should be on the previous line.' 16 } 17 18 private 19 class 20 MyClass { // OK 21 } 22 23 enum Colors {RED, // OK 24 BLUE, 25 GREEN; 26 } 27 } 28 // xdoc section -- end