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  /** Javadoc for import */
14  import java.io.Serializable;
15  
16  /**
17   * Some javadoc.
18   *
19   * @since Some javadoc.
20   * @version 1.0 // violation
21   * @deprecated Some javadoc.
22   * @see Some javadoc. // violation
23   * @author max // violation
24   */
25  class InputAtclauseOrderIncorrect1 implements Serializable
26  {
27      /**
28       * The client's first name.
29       * @serial
30       */
31      private String fFirstName;
32  
33      /**
34       * The client's first name.
35       * @serial
36       */
37      private String sSecondName;
38  
39      /**
40       * The client's first name.
41       * @serialField
42       */
43      private String tThirdName;
44  
45      /**
46       * Some text.
47       * @param aString Some text.
48       * @return Some text.
49       * @serialData Some javadoc.
50       * @deprecated Some text.
51       * @throws Exception Some text. // violation
52       */
53      String method(String aString) throws Exception
54      {
55          return "null";
56      }
57  
58      /**
59       * Some text.
60       * @serialData Some javadoc.
61       * @return Some text. // violation
62       * @param aString Some text. // violation
63       * @throws Exception Some text. // violation
64       */
65      String method1(String aString) throws Exception
66      {
67          return "null";
68      }
69  
70      /**
71       * Some text.
72       * @throws Exception Some text.
73       * @param aString Some text. // violation
74       */
75      void method2(String aString) throws Exception {}
76  
77      /**
78       * Some text.
79       * @deprecated Some text.
80       * @throws Exception Some text. // violation
81       */
82      void method3() throws Exception {}
83  
84      /**
85       * Some text.
86       * @return Some text.
87       * @throws Exception Some text.
88       */
89      String method4() throws Exception
90      {
91          return "null";
92      }
93  
94      /**
95       * Some text.
96       * @deprecated Some text.
97       * @return Some text. // violation
98       * @param aString Some text. // violation
99       */
100     String method5(String aString)
101     {
102         return "null";
103     }
104 
105     /**
106      * Some text.
107      * @param aString Some text.
108      * @return Some text.
109      * @serialData Some javadoc.
110      * @param aInt Some text. // violation
111      * @throws Exception Some text. // violation
112      * @param aBoolean Some text. // violation
113      * @deprecated Some text.
114      */
115     String method6(String aString, int aInt, boolean aBoolean) throws Exception
116     {
117         return "null";
118     }
119 }