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