author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 43374 | langtools/test/tools/doclint/DuplicateParamTest.java@d312a15c5fcf |
permissions | -rw-r--r-- |
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 |
} |