test/tools/doclint/LiteralTest.java

Mon, 21 Jan 2013 10:00:46 -0800

author
jjg
date
Mon, 21 Jan 2013 10:00:46 -0800
changeset 1506
4a3cfc970c6f
parent 0
959103a6100f
permissions
-rw-r--r--

8006263: Supplementary test cases needed for doclint
Reviewed-by: mcimadamore
Contributed-by: peter.jensen@oracle.com

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8006228
     4  * @summary Doclint doesn't detect <code> {@code nested inline} </code>
     5  * @build DocLintTester
     6  * @run main DocLintTester -ref LiteralTest.out LiteralTest.java
     7  */
     9 /** */
    10 public class LiteralTest {
    11     /** <code> abc {@literal < & > } def </code> */
    12     public void ok_literal_in_code() { }
    14     /** <code> abc {@code < & > } def </code> */
    15     public void bad_code_in_code() { }
    16 }

mercurial