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 Example2 {
13  
14    int x;
15  
16    Example2() {}
17  
18    Example2(String s){}
19  
20    void foo() {}
21  
22    Example2(int x) {} // violation
23  
24    Example2(String s, int x) {} // violation
25  
26    private enum ExampleEnum {
27  
28      ONE, TWO, THREE;
29  
30      ExampleEnum() {}
31  
32      ExampleEnum(int x) {}
33  
34      final int x = 10;
35  
36      ExampleEnum(String str) {} // violation
37  
38      void foo() {}
39    }
40  
41    Example2(float f) {} // violation
42  }
43  // xdoc section -- end