File: Test.java

package info (click to toggle)
libnb-javaparser-java 9%2B2018-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 65,172 kB
  • sloc: java: 440,096; xml: 6,359; sh: 865; makefile: 314
file content (54 lines) | stat: -rw-r--r-- 1,440 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* @test /nodynamiccopyright/
 * @bug 8025246
 * @summary doclint is showing error on anchor already defined when it's not
 * @library ../..
 * @modules jdk.compiler/com.sun.tools.doclint
 * @build DocLintTester
 * @run main DocLintTester -ref Test.out Test.java
 * @compile/fail/ref=Test.javac.out -XDrawDiagnostics -Werror -Xdoclint:all Test.java
 */

package p;

/**
 * <a name="dupTest">dupTest</a>
 * <a name="dupTest">dupTest again</a>
 *
 * <a name="dupTestField">dupTestField</a>
 * <a name="dupTestMethod">dupTestMethod</a>

 * <a name="okClass">okClass</a>
 * <a name="okField">okField</a>
 * <a name="okMethod">okMethod</a>
 */
public class Test {
    /** <a name="dupTestField">dupTestField again</a> */
    public int f;

    /** <a name="dupTestMethod">dupTestMethod again</a> */
    public void m() { }

    /**
     * <a name="dupNested">dupNested</a>
     * <a name="dupNested">dupNested again</a>
     * <a name="dupNestedField">dupNestedField</a>
     * <a name="dupNestedMethod">dupNestedMethod</a>
     *
     * <a name="okClass">okClass again</a>
     */
    public class Nested {
        /**
         * <a name="dupNestedField">dupNestedField</a>
         *
         * <a name="okField">okField again</a>
         */
        public int f;

        /**
         * <a name="dupNestedMethod">dupNestedMethod</a>
         *
         * <a name="okMethod">okMethod again</a>
         */
        public void m() { }
    }
}