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