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