test/tools/doclint/ReferenceTest.java

Mon, 23 Sep 2013 17:27:38 +0400

author
kizune
date
Mon, 23 Sep 2013 17:27:38 +0400
changeset 2048
809a50f24d6f
parent 1917
2fbe77c38802
child 2054
3ae62331a56f
permissions
-rw-r--r--

7154966: CRs found to be in Fixed state with no test and no noreg- keyword.
Reviewed-by: ksrini

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8004832 8020556
     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 { }
    57 }

mercurial