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