test/tools/doclint/tidy/AnchorAlreadyDefined.java

changeset 1455
75ab654b5cd5
child 1465
a22f23fb7abf
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/tools/doclint/tidy/AnchorAlreadyDefined.java	Mon Dec 17 07:47:05 2012 -0800
     1.3 @@ -0,0 +1,15 @@
     1.4 +/*
     1.5 + * @test /nodynamiccopyright/
     1.6 + * @library ..
     1.7 + * @build DocLintTester
     1.8 + * @run main DocLintTester -ref AnchorAlreadyDefined.out AnchorAlreadyDefined.java
     1.9 + */
    1.10 +
    1.11 +// tidy: Warning: <.*> anchor ".*" already defined
    1.12 +
    1.13 +/**
    1.14 + * <a name="here">valid</a>
    1.15 + * <a name="here">duplicate</a>
    1.16 + * <h1 id="here">duplicate</h1>
    1.17 + */
    1.18 +public class AnchorAlreadyDefined { }

mercurial