jdk-24/test/langtools/tools/doclint/tidy/AnchorAlreadyDefined.java
Jonathan Gibbons d3242724c9 8220379: Fix doclint handling of headings
Reviewed-by: erikj, jlahoda
2019-03-14 11:39:00 -07:00

19 lines
449 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8004832
* @summary Add new doclint package
* @library ..
* @modules jdk.compiler/com.sun.tools.doclint
* @build DocLintTester
* @run main DocLintTester -ref AnchorAlreadyDefined.out AnchorAlreadyDefined.java
*/
// tidy: Warning: <.*> anchor ".*" already defined
/**
* <a name="here">valid</a>
* <a name="here">duplicate</a>
* <h2 id="here">duplicate</h2>
*/
public class AnchorAlreadyDefined { }