test/tools/doclint/tidy/TrimmingEmptyTag.java

changeset 0
959103a6100f
child 2525
2eb010b6cb22
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/doclint/tidy/TrimmingEmptyTag.java	Wed Apr 27 01:34:52 2016 +0800
     1.3 @@ -0,0 +1,34 @@
     1.4 +/*
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @bug 8004832 8026368
     1.7 + * @summary Add new doclint package
     1.8 + * @library ..
     1.9 + * @build DocLintTester
    1.10 + * @run main DocLintTester -ref TrimmingEmptyTag.out TrimmingEmptyTag.java
    1.11 + */
    1.12 +
    1.13 +// tidy: Warning: trimming empty <.*>
    1.14 +
    1.15 +/**
    1.16 + * <b></b>
    1.17 + * <table summary=description></table>
    1.18 + * <table><caption></caption></table>
    1.19 + * <code></code>
    1.20 + * <dl></dl>
    1.21 + * <dl><dt></dt><dd></dd></dl>
    1.22 + * <font></font>
    1.23 + * <i></i>
    1.24 + * <ol></ol>
    1.25 + * <p></p>
    1.26 + * <pre></pre>
    1.27 + * <span></span>
    1.28 + * <tt></tt>
    1.29 + * <ul></ul>
    1.30 + * <ul><li></li></ul>
    1.31 + */
    1.32 +public class TrimmingEmptyTag {
    1.33 +    /** <p> */
    1.34 +    public void implicitParaEnd_endOfComment() { }
    1.35 +    /** <p> <ul><li>text</ul> */
    1.36 +    public void implicitParaEnd_nextBlockTag() { }
    1.37 +}

mercurial