langtools/test/tools/doclint/DuplicateParamTest.java
author jjg
Fri, 27 Jan 2017 15:49:14 -0800
changeset 43374 d312a15c5fcf
permissions -rw-r--r--
8081820: javadoc does not report warnings in case of multiple "@param" tags for the same parameter and multiple "@return" tags for the same method. Reviewed-by: jjg Contributed-by: istomin.den@gmail.com

/*
 * @test /nodynamiccopyright/
 * @bug 8081820
 * @summary Validate parameter names uniqueness
 * @modules jdk.compiler/com.sun.tools.doclint
 * @build DocLintTester
 * @run main DocLintTester -Xmsgs:-reference DuplicateParamTest.java
 * @run main DocLintTester -ref DuplicateParamTest.out DuplicateParamTest.java
 */

/** . */
public class DuplicateParamTest {

    /**
     * Test.
     *
     * @param s one
     * @param s two
     * @param s three
     *
     * @return number
     */
    public static int Test(String s) { return s.length(); }
}