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 InputIncorrectAtClauseOrderCheck2 implements Serializable {
15    /**
16     * Some text.
17     *
18     * @throws Exception Some text.
19     * @param str Some text. // violation 'Block tags have to appear in the order .*'
20     */
21    void method2(String str) throws Exception {}
22  
23    /**
24     * Some text.
25     *
26     * @deprecated Some text.
27     * @throws Exception Some text. // violation 'Block tags have to appear in the order .*'
28     */
29    void method3() throws Exception {}
30  
31    /**
32     * Some text.
33     *
34     * @return Some text.
35     * @throws Exception Some text.
36     */
37    String method4() throws Exception {
38      return "null";
39    }
40  
41    /**
42     * Some javadoc.
43     *
44     * @version 1.0
45     * @since Some javadoc.
46     * @serialData Some javadoc.
47     * @author max
48     */
49    class InnerClassWithAnnotations2 {
50      /**
51       * Some text.
52       *
53       * @serialData Some javadoc.
54       * @param str Some text.
55       * @throws Exception Some text.
56       */
57      void method2(String str) throws Exception {}
58  
59      /**
60       * Some text.
61       *
62       * @deprecated Some text.
63       * @throws Exception Some text. // violation 'Block tags have to appear in the order .*'
64       */
65      void method3() throws Exception {}
66  
67      /**
68       * Some text.
69       *
70       * @throws Exception Some text.
71       * @serialData Some javadoc.
72       * @return Some text. // violation 'Block tags have to appear in the order .*'
73       */
74      String method4() throws Exception {
75        return "null";
76      }
77    }
78  
79    InnerClassWithAnnotations2 anon =
80        new InnerClassWithAnnotations2() {
81          /**
82           * Some text.
83           *
84           * @throws Exception Some text.
85           * @param str Some text. // violation 'Block tags have to appear in the order .*'
86           */
87          void method2(String str) throws Exception {}
88  
89          /**
90           * Some text.
91           *
92           * @deprecated Some text.
93           * @throws Exception Some text. // violation 'Block tags have to appear in the order .*'
94           */
95          void method3() throws Exception {}
96  
97          /**
98           * Some text.
99           *
100          * @throws Exception Some text.
101          * @return Some text. // violation 'Block tags have to appear in the order .*'
102          */
103         String method4() throws Exception {
104           return "null";
105         }
106       };
107 
108   /**
109    * Some javadoc.
110    *
111    * @since Some javadoc.
112    * @version 1.0
113    * @deprecated Some javadoc.
114    * @see Some javadoc.
115    * @author max
116    */
117   enum Foo5 {}
118 
119   /**
120    * Some javadoc.
121    *
122    * @version 1.0
123    * @since Some javadoc.
124    * @serialData Some javadoc.
125    * @author max
126    */
127   interface FooIn1 {}
128 }