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