View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ConstructorsDeclarationGrouping"/>
5     </module>
6   </module>
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.coding.constructorsdeclarationgrouping;
10  
11  // xdoc section -- start
12  public class Example1 {
13  
14    int x;
15  
16    Example1() {}
17  
18    Example1(String s) {}
19  
20    // comments between constructors are allowed.
21    Example1(int x) {}
22  
23    Example1(String s, int x) {}
24  
25    void foo() {}
26  
27    private enum ExampleEnum {
28  
29      ONE, TWO, THREE;
30  
31      ExampleEnum() {}
32  
33      ExampleEnum(int x) {}
34  
35      ExampleEnum(String s) {}
36  
37      int x = 10;
38  
39      void foo() {}
40    }
41  }
42  // xdoc section -- end