View Javadoc
1   /*
2   AtclauseOrder
3   violateExecutionOnNonTightHtml = (default)false
4   target = (default)CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, \
5            CTOR_DEF, VARIABLE_DEF, RECORD_DEF, COMPACT_CTOR_DEF
6   tagOrder = (default)@author, @deprecated, @exception, @param, @return, \
7              @see, @serial, @serialData, @serialField, @since, @throws, @version
8   
9   
10  */
11  
12  package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder;
13  
14  import java.io.Serializable;
15  
16  public class InputAtclauseOrderCorrect2 implements Serializable {
17  
18      /**
19       *
20       * @author max
21       * @version 1.0
22       * @since Some javadoc.
23       */
24      class InnerClassWithAnnotations2
25      {
26          /**
27           * Some text.
28           * @param aString Some text.
29           * @return Some text.
30           * @throws Exception Some text.
31           * @deprecated Some text.
32           */
33          String method(String aString) throws Exception {
34              return "null";
35          }
36  
37          /**
38           * Some text.
39           * @param aString Some text.
40           * @return Some text.
41           * @throws Exception Some text.
42           * @serialData Some javadoc.
43           */
44          String method1(String aString) throws Exception {
45              return "null";
46          }
47  
48          /**
49           * Some text.
50           * @param aString Some text.
51           * @throws Exception Some text.
52           */
53          void method2(String aString) throws Exception {}
54      }
55  
56      InnerClassWithAnnotations2 anon = new InnerClassWithAnnotations2()
57      {
58          /**
59           * Some text.
60           * @param aString Some text.
61           * @return Some text.
62           * @throws Exception Some text.
63           * @deprecated Some text.
64           */
65          String method(String aString) throws Exception {
66              return "null";
67          }
68  
69          /**
70           * Some text.
71           * @param aString Some text.
72           * @return Some text.
73           * @throws Exception Some text.
74           */
75          String method1(String aString) throws Exception {
76              return "null";
77          }
78  
79          /**
80           * Some text.
81           * @param aString Some text.
82           * @throws Exception Some text.
83           * @serialData Some javadoc.
84           */
85          void method2(String aString) throws Exception {}
86      };
87  }