01: ////////////////////////////////////////////////////////////////////////////////
02: // Test case file for checkstyle.
03: // Created: 2001
04: ////////////////////////////////////////////////////////////////////////////////
05: package com.puppycrawl.tools.checkstyle;
06:
07: public class InputScopeInnerInterfaces {
08: // inner interfaces with different scopes
09:
10: private interface PrivateInterface {
11: public String CA = "CONST A";
12: String CB = "CONST b";
13:
14: public void ma();
15:
16: void mb();
17: }
18:
19: interface PackageInnerInterface {
20: public String CA = "CONST A";
21: String CB = "CONST b";
22:
23: public void ma();
24:
25: void mb();
26: }
27:
28: protected interface ProtectedInnerInterface {
29: public String CA = "CONST A";
30: String CB = "CONST b";
31:
32: public void ma();
33:
34: void mb();
35: }
36:
37: public interface PublicInnerInterface {
38: public String CA = "CONST A";
39: String CB = "CONST b";
40:
41: public void ma();
42:
43: void mb();
44: }
45:
46: private class MyClass1 {
47: }
48:
49: class MyClass2 {
50: }
51:
52: private interface MyInterface1 {
53: }
54:
55: interface MyInterface2 {
56: }
57:
58: protected enum MyEnum {
59: }
60:
61: private @interface MyAnnotation {
62: }
63: }
|