View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.naming.parametername;
2   
3   public class InputParameterNameAccessModifier {
4   
5       public InputParameterNameAccessModifier(int pubconstr) {}
6   
7       public void v1(int h) {
8           new Object () {
9               public void i(int inner) {}
10          };
11      }
12  
13      protected void v4(int h) {}
14  
15      void v2(int h) {}
16  
17      private void v3(int h) {}
18  
19      public void i1(int pubpub) {}
20  
21      protected void i4(int pubprot) {}
22  
23      void i2(int pubpack) {}
24  
25      private void i3(int pubpriv) {}
26  
27      public interface InterfaceScope {
28          void v1(int h);
29  
30          void i1(int pubifc);
31      }
32  }
33  
34  class PrivateScope {
35  
36      public void v1(int h) {}
37  
38      protected void v4(int h) {}
39  
40      void v2(int h) {}
41  
42      private void v3(int h) {}
43  
44      public void i1(int packpub) {}
45  
46      protected void i4(int packprot) {}
47  
48      void i2(int packpack) {}
49  
50      private void i3(int packpriv) {
51          try {
52              /* Make sure catch var is ignored */
53          } catch (Exception exc) {
54          }
55      }
56  
57      interface InterfaceScope {
58          void v1(int h);
59  
60          void i1(int packifc);
61      }
62  
63      interface FuncIfc {
64          void a(int h);
65      }
66  
67      public void l() {
68          FuncIfc l1 = (int lexp)->{};
69  
70          FuncIfc l2 = (limp)->{};
71      }
72  }
73  
74