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  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
14  
15  public class InputJavadocMethodSurroundingAccessModifier //comment test
16  {
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      /**
35       * @return
36       */
37      public void foo5() {
38      }
39  
40      /**
41       * @return
42       */
43      protected void foo6() {
44      }
45  
46      /**
47       * @return
48       */
49      void foo7() {
50      }
51  
52      /**
53       * @return
54       */
55      private void foo8() {
56      }
57  
58      protected class ProtectedInner {
59          public int i1;
60          protected int i2;
61          int i3;
62          private int i4;
63  
64          public void foo1() {
65          }
66  
67          protected void foo2() {
68          }
69  
70          void foo3() {
71          }
72  
73          private void foo4() {
74          }
75      }
76  
77      class PackageInner {
78          public int i1;
79          protected int i2;
80          int i3;
81          private int i4;
82  
83          public void foo1() {
84          }
85  
86          protected void foo2() {
87          }
88  
89          void foo3() {
90          }
91  
92          private void foo4() {
93          }
94      }
95  
96      private class PrivateInner {
97          public int i1;
98          protected int i2;
99          int i3;
100         private int i4;
101 
102         public void foo1() {
103         }
104 
105         protected void foo2() {
106         }
107 
108         void foo3() {
109         }
110 
111         private void foo4() {
112         }
113     }
114 }
115