jdk-24/test/langtools/tools/doclint/LiteralTest.java
Jonathan Gibbons ae45592d33 8272374: doclint should report missing "body" comments
Reviewed-by: kcr, hannesw
2021-08-16 20:48:25 +00:00

21 lines
524 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8006228
* @summary Doclint doesn't detect <code> {@code nested inline} </code>
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -ref LiteralTest.out LiteralTest.java
*/
/** . */
public class LiteralTest {
/** <code> abc {@literal < & > } def </code> */
public void ok_literal_in_code() { }
/** <code> abc {@code < & > } def </code> */
public void bad_code_in_code() { }
/** . */
LiteralTest() { }
}