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