View Javadoc
1   /*
2   ParameterNumber
3   max = (default)7
4   ignoreOverriddenMethods = true
5   tokens = (default)METHOD_DEF, CTOR_DEF
6   
7   
8   */
9   
10  package com.puppycrawl.tools.checkstyle.checks.sizes.parameternumber;
11  
12  class InputParameterNumberCheckBase
13  {
14      // method with many parameters
15      void myMethod(int a, int b, int c, int d, int e, int f, int g, int h) { // violation
16  
17      }
18  
19      // method with many parameters
20      void myMethod2(int a, int b, int c, int d, int e, int f, int g, int h) { // violation
21  
22      }
23  }
24  
25  public class InputParameterNumber extends InputParameterNumberCheckBase
26  {
27      @Override
28      void myMethod(int a, int b, int c, int d, int e, int f, int g, int h) {
29  
30      }
31  
32      @java.lang.Override
33      void myMethod2(int a, int b, int c, int d, int e, int f, int g, int h) {
34  
35      }
36  }