View Javadoc
1   /*
2   JavadocVariable
3   scope = (default)private
4   excludeScope = (default)null
5   ignoreNamePattern = (default)null
6   tokens = (default)ENUM_CONSTANT_DEF
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocvariable;
12  
13  public class InputJavadocVariableOnPublicInnerClassFields {
14      public int i1; // violation
15      protected int i2; // violation
16      int i3; // violation
17      private int i4; // violation
18  
19      public void foo1() {}
20      protected void foo2() {}
21      void foo3() {}
22      private void foo4() {}
23  
24      public class PublicInner {
25          public int i1; // violation
26          protected int i2; // violation
27          int i3; // violation
28          private int i4; // violation
29  
30          public void foo1() {}
31          protected void foo2() {}
32          void foo3() {}
33          private void foo4() {}
34      }
35  
36      protected class ProtectedInner {
37          public int i1; // violation
38          protected int i2; // violation
39          int i3; // violation
40          private int i4; // violation
41  
42          public void foo1() {}
43          protected void foo2() {}
44          void foo3() {}
45          private void foo4() {}
46      }
47  
48      class PackageInner {
49          public int i1; // violation
50          protected int i2; // violation
51          int i3; // violation
52          private int i4; // violation
53  
54          public void foo1() {}
55          protected void foo2() {}
56          void foo3() {}
57          private void foo4() {}
58      }
59  
60      private class PrivateInner {
61          public int i1; // violation
62          protected int i2; // violation
63          int i3; // violation
64          private int i4; // violation
65  
66          public void foo1() {}
67          protected void foo2() {}
68          void foo3() {}
69          private void foo4() {}
70      }
71  
72      class IgnoredName {
73  
74          private int logger; // violation
75          // no warning, 'serialVersionUID' fields do not require Javadoc
76          private static final long serialVersionUID = 0;
77      }
78  
79      /**/
80      void methodWithTwoStarComment() {}
81  }