View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ParameterNumber"/>
5     </module>
6   </module>
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.sizes.parameternumber;
10  
11  // xdoc section -- start
12  class Example1 extends ExternalService1 {
13  
14    @JsonCreator
15    // violation below, 'More than 7 parameters (found 8)'
16    Example1(int a, int b, int c, int d,
17             int e, int f, int g, int h) {}
18  
19    // violation below, 'More than 7 parameters (found 8)'
20    Example1(String a, String b, String c, String d,
21             String e, String f, String g, String h) {}
22  
23    @Override
24    // violation below, 'More than 7 parameters (found 8)'
25    public void processData(String a, String b, String c, String d,
26                            String e, String f, String g, String h) {}
27  
28  }
29  
30  class ExternalService1 {
31  
32    // violation below, 'More than 7 parameters (found 8)'
33    public void processData(String a, String b, String c, String d,
34                            String e, String f, String g, String h) {}
35  
36  }
37  // xdoc section -- end
38  @interface JsonCreator {}