View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder;
2   
3   import java.io.Serializable;
4   
5   /**
6    * Some javadoc.
7    * 
8    * @author max
9    * @version 1.0
10   * @see Some javadoc.
11   * @since Some javadoc.
12   * @deprecated Some javadoc.
13   */
14  class WithAnnotations implements Serializable
15  {
16  
17      /**
18       * The client's first name.
19       * @serial
20       */
21      private String fFirstName;
22       
23      /**
24       * The client's first name.
25       * @serial
26       */
27      private String sSecondName;
28        
29      /**
30       * The client's first name.
31       * @serialField
32       */
33      private String tThirdName;
34  
35      /**
36       * Some text.
37       * @param aString Some text.
38       * @return Some text.
39       * @throws Exception Some text.
40       * @serialData Some javadoc.
41       * @deprecated Some text.
42       */
43      String method(String aString) throws Exception
44      {
45          return "null";
46      }
47  
48      /**
49       * Some text.
50       * @param aString Some text.
51       * @return Some text.
52       * @throws Exception Some text.
53       * @serialData Some javadoc.
54       */
55      String method1(String aString) throws Exception
56      {
57          return "null";
58      }
59  
60      /**
61       * Some text.
62       * @param aString Some text.
63       * @throws Exception Some text.
64       */
65      void method2(String aString) throws Exception {}
66      
67      /**
68       * Some text.
69       * @throws Exception Some text.
70       * @deprecated Some text.
71       */
72      void method3() throws Exception {}
73      
74      /**
75       * Some text.
76       * @return Some text.
77       * @throws Exception Some text.
78       */
79      String method4() throws Exception
80      {
81          return "null";
82      }
83  
84      /**
85       * Some text.
86       * @param aString Some text.
87       * @return Some text.
88       * @serialData Some javadoc.
89       * @deprecated Some text.
90       */
91      String method5(String aString)
92      {
93          return "null";
94      }
95      
96      /**
97       * Some text.
98       * @param aString Some text.
99       * @param aInt Some text.
100      * @param aBoolean Some text.
101      * @return Some text.
102      * @throws Exception Some text.
103      * @deprecated Some text.
104      */
105     String method6(String aString, int aInt, boolean aBoolean) throws Exception
106     {
107         return "null";
108     }
109     
110     /**
111      * 
112      * @author max
113      * @version 1.0
114      * @since Some javadoc.
115      */
116     class InnerClassWithAnnotations
117     {
118         /**
119          * Some text.
120          * @param aString Some text.
121          * @return Some text.
122          * @throws Exception Some text.
123          * @deprecated Some text.
124          */
125         String method(String aString) throws Exception
126         {
127             return "null";
128         }
129 
130         /**
131          * Some text.
132          * @param aString Some text.
133          * @return Some text.
134          * @throws Exception Some text.
135          * @serialData Some javadoc.
136          */
137         String method1(String aString) throws Exception
138         {
139             return "null";
140         }
141 
142         /**
143          * Some text.
144          * @param aString Some text.
145          * @throws Exception Some text.
146          */
147         void method2(String aString) throws Exception {}
148         
149         /**
150          * Some text.
151          * @throws Exception Some text.
152          * @deprecated Some text.
153          */
154         void method3() throws Exception {}
155         
156         /**
157          * Some text.
158          * @return Some text.
159          * @throws Exception Some text.
160          * @serialData Some javadoc.
161          */
162         String method4() throws Exception
163         {
164             return "null";
165         }
166 
167         /**
168          * Some text.
169          * @param aString Some text.
170          * @return Some text.
171          * @serialData Some javadoc.
172          * @deprecated Some text.
173          */
174         String method5(String aString)
175         {
176             return "null";
177         }
178         
179         /**
180          * Some text.
181          * @param aString Some text.
182          * @param aInt Some text.
183          * @param aBoolean Some text.
184          * @return Some text.
185          * @throws Exception Some text.
186          * @deprecated Some text.
187          */
188         String method6(String aString, int aInt, boolean aBoolean) throws Exception
189         {
190             return "null";
191         }
192     }
193     
194     InnerClassWithAnnotations anon = new InnerClassWithAnnotations()
195     {
196         /**
197          * Some text.
198          * @param aString Some text.
199          * @return Some text.
200          * @throws Exception Some text.
201          * @deprecated Some text.
202          */
203         String method(String aString) throws Exception
204         {
205             return "null";
206         }
207 
208         /**
209          * Some text.
210          * @param aString Some text.
211          * @return Some text.
212          * @throws Exception Some text.
213          */
214         String method1(String aString) throws Exception
215         {
216             return "null";
217         }
218 
219         /**
220          * Some text.
221          * @param aString Some text.
222          * @throws Exception Some text.
223          * @serialData Some javadoc.
224          */
225         void method2(String aString) throws Exception {}
226         
227         /**
228          * Some text.
229          * @throws Exception Some text.
230          * @deprecated Some text.
231          */
232         void method3() throws Exception {}
233         
234         /**
235          * Some text.
236          * @return Some text.
237          * @throws Exception Some text.
238          */
239         String method4() throws Exception
240         {
241             return "null";
242         }
243 
244         /**
245          * Some text.
246          * @param aString Some text.
247          * @return Some text.
248          * @deprecated Some text.
249          */
250         String method5(String aString)
251         {
252             return "null";
253         }
254         
255         /**
256          * Some text.
257          * @param aString Some text.
258          * @param aInt Some text.
259          * @param aBoolean Some text.
260          * @return Some text.
261          * @throws Exception Some text.
262          * @deprecated Some text.
263          */
264         String method6(String aString, int aInt, boolean aBoolean) throws Exception
265         {
266             return "null";
267         }
268     };
269 }
270 
271 /**
272  * Some javadoc.
273  * 
274  * @author max
275  * @version 1.0
276  * @see Some javadoc.
277  * @since Some javadoc.
278  * @deprecated Some javadoc.
279  */
280 enum Foo3 {}
281 
282 /**
283  * Some javadoc.
284  * 
285  * @author max
286  * @version 1.0
287  * @see Some javadoc.
288  * @since Some javadoc.
289  * @deprecated Some javadoc.
290  */
291 interface FooIn3 {}