View Javadoc
1   /*
2   JavadocMethod
3   allowedAnnotations = (default)Override
4   validateThrows = (default)false
5   accessModifiers = private
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  
14  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
15  
16  public class InputJavadocMethodPackageClass2 {
17      public int i1;
18      protected int i2;
19      int i3;
20      private int i4;
21  
22      public void foo1() {
23      }
24  
25      protected void foo2() {
26      }
27  
28      void foo3() {
29      }
30  
31      private void foo4() {
32      }
33  
34      public class PublicInner {
35          public int i1;
36          protected int i2;
37          int i3;
38          private int i4;
39  
40          public void foo1() {
41          }
42  
43          protected void foo2() {
44          }
45  
46          void foo3() {
47          }
48  
49          private void foo4() {
50          }
51      }
52  
53      protected class ProtectedInner {
54          public int i1;
55          protected int i2;
56          int i3;
57          private int i4;
58  
59          public void foo1() {
60          }
61  
62          protected void foo2() {
63          }
64  
65          void foo3() {
66          }
67  
68          private void foo4() {
69          }
70      }
71  
72      class PackageInner {
73          public int i1;
74          protected int i2;
75          int i3;
76          private int i4;
77  
78          public void foo1() {
79          }
80  
81          protected void foo2() {
82          }
83  
84          void foo3() {
85          }
86  
87          private void foo4() {
88          }
89      }
90  
91      private class PrivateInner {
92          public int i1;
93          protected int i2;
94          int i3;
95          private int i4;
96  
97          public void foo1() {
98          }
99  
100         protected void foo2() {
101         }
102 
103         void foo3() {
104         }
105 
106         private void foo4() {
107         }
108     }
109 
110     class IgnoredName {
111         // ignore by name
112         private int logger;
113         // no warning, 'serialVersionUID' fields do not require Javadoc
114         private static final long serialVersionUID = 0;
115     }
116 
117     /**/
118     void methodWithTwoStarComment() {
119     }
120 }