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