View Javadoc
1   /*
2   ParameterName
3   format = ^h$
4   ignoreOverridden = (default)false
5   accessModifiers = (default)public, protected, package, private
6   
7   
8   */
9   
10  package com.puppycrawl.tools.checkstyle.checks.naming.parametername;
11  
12  public class InputParameterNameOverrideAnnotationOne {
13  
14      @Override
15      public boolean equals(Object o) { // violation
16          return super.equals(o);
17      }
18  
19      @SuppressWarnings("")
20      public void foo(Object object) { // violation
21  
22      }
23  
24      public void foo2(Integer aaaa) {} // violation
25  
26      void foo3() {} // No NPE here!
27  
28      void foo4(int abc, int bd) {} // 2 violations
29  
30      int foo5(int abc) {return 1;} // violation
31  
32      private int field;
33      private java.util.Set<String> packageNames;
34  
35      InputParameterNameOverrideAnnotationOne() {} // No NPE here!
36      // 2 violations below
37      InputParameterNameOverrideAnnotationOne(int fie, java.util.Set<String> pkgNames) {}
38  
39  
40  }