2012-12-17 15:47:05 +00:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
2020-05-29 12:28:13 +00:00
|
|
|
* @bug 8004832 8020556 8002154 8200432 8177280
|
2012-12-20 17:59:46 +00:00
|
|
|
* @summary Add new doclint package
|
2020-09-23 19:55:08 +00:00
|
|
|
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
|
2012-12-17 15:47:05 +00:00
|
|
|
* @build DocLintTester
|
|
|
|
* @run main DocLintTester -Xmsgs:-reference ReferenceTest.java
|
|
|
|
* @run main DocLintTester -ref ReferenceTest.out ReferenceTest.java
|
|
|
|
*/
|
|
|
|
|
2021-08-16 20:48:25 +00:00
|
|
|
/** . */
|
2012-12-17 15:47:05 +00:00
|
|
|
public class ReferenceTest {
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @param x description
|
|
|
|
*/
|
|
|
|
public int invalid_param;
|
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @param x description
|
|
|
|
*/
|
2021-08-11 18:03:40 +00:00
|
|
|
public class InvalidParam { /** . */ private InvalidParam() { } }
|
2012-12-17 15:47:05 +00:00
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @param x description
|
|
|
|
*/
|
|
|
|
public void param_name_not_found(int a) { }
|
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @param <X> description
|
|
|
|
*/
|
2021-08-11 18:03:40 +00:00
|
|
|
public class typaram_name_not_found { /** . */ private typaram_name_not_found() { } }
|
2012-12-17 15:47:05 +00:00
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @see Object#tooStrong()
|
|
|
|
*/
|
|
|
|
public void ref_not_found() { }
|
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @return x description
|
|
|
|
*/
|
|
|
|
public int invalid_return;
|
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @return x description
|
|
|
|
*/
|
|
|
|
public void invalid_return();
|
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2012-12-17 15:47:05 +00:00
|
|
|
* @throws Exception description
|
|
|
|
*/
|
|
|
|
public void exception_not_thrown() { }
|
2013-07-25 00:35:42 +00:00
|
|
|
|
|
|
|
/**
|
2021-08-16 20:48:25 +00:00
|
|
|
* .
|
2013-07-25 00:35:42 +00:00
|
|
|
* @param <T> throwable
|
|
|
|
* @throws T description
|
|
|
|
*/
|
|
|
|
public <T extends Throwable> void valid_throws_generic() throws T { }
|
2013-09-24 20:48:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* {@link java.util.List<String>}
|
|
|
|
* {@link java.util.List<String>#equals}
|
2018-11-22 14:38:20 +00:00
|
|
|
* {@link not.Found<String>}
|
2013-09-24 20:48:12 +00:00
|
|
|
* @see java.util.List<String>
|
|
|
|
* @see java.util.List<String>#equals
|
2018-11-22 14:38:20 +00:00
|
|
|
* @see not.Found<String>
|
2013-09-24 20:48:12 +00:00
|
|
|
*/
|
|
|
|
public void invalid_type_args() { }
|
2018-11-22 14:38:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* {@link java.lang.String[]}
|
|
|
|
* {@link java.lang.String[]#equals}
|
|
|
|
* {@link not.Found[]}
|
|
|
|
* @see java.lang.String[]
|
|
|
|
* @see java.lang.String[]#equals
|
|
|
|
* @see not.Found[]
|
|
|
|
*/
|
|
|
|
public void invalid_array_types() { }
|
2021-08-11 18:03:40 +00:00
|
|
|
|
|
|
|
/** . */
|
|
|
|
private ReferenceTest() { }
|
2012-12-17 15:47:05 +00:00
|
|
|
}
|
|
|
|
|