test/langtools/tools/doclint/DuplicateParamTest.java
author herrick
Thu, 06 Jun 2019 19:51:17 -0400
branchJDK-8200758-branch
changeset 57396 3944e4c2f779
parent 47216 71c04702a3d5
permissions -rw-r--r--
8223586: remove jpackage dead code and other cleanup Reviewed-by: asemenyuk, almatvee
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43374
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     1
/*
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     3
 * @bug 8081820
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     4
 * @summary Validate parameter names uniqueness
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     5
 * @modules jdk.compiler/com.sun.tools.doclint
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     6
 * @build DocLintTester
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -Xmsgs:-reference DuplicateParamTest.java
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     8
 * @run main DocLintTester -ref DuplicateParamTest.out DuplicateParamTest.java
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
     9
 */
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    10
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    11
/** . */
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    12
public class DuplicateParamTest {
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    13
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    14
    /**
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    15
     * Test.
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    16
     *
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    17
     * @param s one
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    18
     * @param s two
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    19
     * @param s three
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    20
     *
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    21
     * @return number
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    22
     */
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    23
    public static int Test(String s) { return s.length(); }
d312a15c5fcf 8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method.
jjg
parents:
diff changeset
    24
}