test/tools/doclint/ReferenceTest.java

Tue, 24 Sep 2013 13:48:12 -0700

author
jjg
date
Tue, 24 Sep 2013 13:48:12 -0700
changeset 2054
3ae62331a56f
parent 1917
2fbe77c38802
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8002154: [doclint] doclint should check for issues which are errors in javadoc
Reviewed-by: bpatel

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8004832 8020556 8002154
     4  * @summary Add new doclint package
     5  * @build DocLintTester
     6  * @run main DocLintTester -Xmsgs:-reference ReferenceTest.java
     7  * @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java
     8  */
    10 /** */
    11 public class ReferenceTest {
    12     /**
    13      * @param x description
    14      */
    15     public int invalid_param;
    17     /**
    18      * @param x description
    19      */
    20     public class InvalidParam { }
    22     /**
    23      * @param x description
    24      */
    25     public void param_name_not_found(int a) { }
    27     /**
    28      * @param <X> description
    29      */
    30     public class typaram_name_not_found { }
    32     /**
    33      * @see Object#tooStrong()
    34      */
    35     public void ref_not_found() { }
    37     /**
    38      * @return x description
    39      */
    40     public int invalid_return;
    42     /**
    43      * @return x description
    44      */
    45     public void invalid_return();
    47     /**
    48      * @throws Exception description
    49      */
    50     public void exception_not_thrown() { }
    52     /**
    53      * @param <T> throwable
    54      * @throws T description
    55      */
    56     public <T extends Throwable> void valid_throws_generic() throws T { }
    58     /**
    59      * {@link java.util.List<String>}
    60      * {@link java.util.List<String>#equals}
    61      * @see java.util.List<String>
    62      * @see java.util.List<String>#equals
    63      */
    64     public void invalid_type_args() { }
    65 }

mercurial