1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.naming.localfinalvariablename;
10
11
12
13
14
15 class InputLocalFinalVariableNameInnerClass
16 {
17
18 class InnerInner2
19 {
20
21 public int fData;
22 }
23
24
25 interface InnerInterface2
26 {
27
28 String data = "zxzc";
29
30
31 class InnerInterfaceInnerClass
32 {
33
34 public int rData;
35
36
37 protected int protectedVariable;
38
39
40 int packageVariable;
41 }
42 }
43
44
45 protected static Object sWeird = new Object();
46
47 static Object sWeird2 = new Object();
48
49
50 public interface Inter
51 {
52 }
53
54 public static void main()
55 {
56 Inter m = new Inter()
57 {
58 private static final int CDS = 1;
59
60 private int ABC;
61 };
62 }
63
64
65 @interface InnerAnnotation
66 {
67
68 String data = "zxzc";
69 }
70
71
72 enum InnerEnum
73 {
74
75 A,
76
77
78 B;
79
80
81 public int someValue;
82 }
83 }