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