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 InputAtclauseOrderIncorrectCustom3 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 InnerClassWithAnnotations3
35      {
36          /**
37           * Some text.
38           * @deprecated Some text.
39           * @throws Exception Some text.
40           */
41          void method3() throws Exception {}
42  
43          /**
44           * Some text.
45           * @throws Exception Some text.
46           * @serialData Some javadoc.
47           * @return Some text.
48           */
49          String method4() throws Exception
50          {
51              return "null";
52          }
53      }
54  
55      InnerClassWithAnnotations3 anon = new InnerClassWithAnnotations3()
56      {
57          /**
58           * Some text.
59           * @deprecated Some text.
60           * @throws Exception Some text.
61           */
62          void method3() throws Exception {}
63  
64          /**
65           * Some text.
66           * @throws Exception Some text.
67           * @return Some text.
68           */
69          String method4() throws Exception
70          {
71              return "null";
72          }
73      };
74  }