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