View Javadoc
1   /*
2   JavadocMethod
3   allowedAnnotations = (default)Override
4   validateThrows = (default)false
5   accessModifiers = public
6   allowMissingParamTags = (default)false
7   allowMissingReturnTag = (default)false
8   tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF
9   
10  
11  */
12  
13  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
14  
15  public class InputJavadocMethodScopeInnerInterfaces
16  {
17      // inner interfaces with different scopes
18  
19      private interface PrivateInterface // ok
20      {
21          public String CA = "CONST A";
22          String CB = "CONST b";
23  
24          public void ma();
25          void mb();
26      }
27  
28      interface PackageInnerInterface // ok
29      {
30          public String CA = "CONST A";
31          String CB = "CONST b";
32  
33          public void ma();
34          void mb();
35      }
36  
37      protected interface ProtectedInnerInterface // ok
38      {
39          public String CA = "CONST A";
40          String CB = "CONST b";
41  
42          public void ma();
43          void mb();
44      }
45  
46      public interface PublicInnerInterface // ok
47      {
48          public String CA = "CONST A";
49          String CB = "CONST b";
50  
51          public void ma();
52          void mb();
53      }
54  
55      private
56      class
57      MyClass1 { // ok
58      }
59  
60      class
61      MyClass2 { // ok
62      }
63  
64      private
65      interface
66      MyInterface1 { // ok
67      }
68  
69      interface
70      MyInterface2 { // ok
71      }
72  
73      protected
74      enum
75      MyEnum { // ok
76      }
77  
78      private
79      @interface
80      MyAnnotation { // ok
81      }
82  }