test/langtools/tools/doclint/DuplicateParamTest.java
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 47216 71c04702a3d5
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com
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
}