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