View Javadoc
1   package com.google.checkstyle.test.chapter7javadoc.rule713atclauses;
2   
3   class InputNonEmptyAtclauseDescription {
4     /**
5      * Some javadoc.
6      *
7      * @param a Some javadoc
8      * @param b Some javadoc
9      * @param c Some javadoc
10     * @return Some javadoc
11     * @throws Exception Some javadoc
12     * @deprecated Some javadoc
13     */
14    public int foo1(String a, int b, double c) throws Exception {
15      return 1;
16    }
17  
18    /**
19     * Some javadoc.
20     *
21     * @param a Some javadoc
22     * @param b Some javadoc
23     * @param c Some javadoc
24     * @return Some javadoc
25     * @throws Exception Some javadoc
26     */
27    public int foo2(String a, int b, double c) throws Exception {
28      return 1;
29    }
30  
31    // violation 9 lines below 'At-clause should have a non-empty description.'
32    // violation 9 lines below 'At-clause should have a non-empty description.'
33    // violation 9 lines below 'At-clause should have a non-empty description.'
34    // violation 9 lines below 'At-clause should have a non-empty description.'
35    // violation 9 lines below 'At-clause should have a non-empty description.'
36    // violation 9 lines below 'At-clause should have a non-empty description.'
37    /**
38     * some javadoc.
39     *
40     * @param a
41     * @param b
42     * @param c
43     * @throws Exception
44     * @deprecated
45     * @deprecated
46     */
47    public int foo3(String a, int b, double c) throws Exception {
48      return 1;
49    }
50  
51    // violation 8 lines below 'At-clause should have a non-empty description.'
52    // violation 8 lines below 'At-clause should have a non-empty description.'
53    // violation 8 lines below 'At-clause should have a non-empty description.'
54    // violation 8 lines below 'At-clause should have a non-empty description.'
55    // violation 8 lines below 'At-clause should have a non-empty description.'
56    /**
57     * some javadoc.
58     *
59     * @param a
60     * @param b
61     * @param c
62     * @throws Exception
63     * @deprecated
64     */
65    public int foo4(String a, int b, double c) throws Exception {
66      return 1;
67    }
68  }