langtools/test/tools/doclint/MissingReturnTest.java
author jjg
Fri, 27 Jan 2017 15:49:14 -0800
changeset 43374 d312a15c5fcf
parent 30730 d3ce7619db2c
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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     1
/*
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
14962
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     3
 * @bug 8004832
19ffdfafbcd2 8005307: fix missing @bug tags
jjg
parents: 14952
diff changeset
     4
 * @summary Add new doclint package
30730
d3ce7619db2c 8076543: Add @modules as needed to the langtools tests
akulyakh
parents: 14962
diff changeset
     5
 * @modules jdk.compiler/com.sun.tools.doclint
14952
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     6
 * @build DocLintTester
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     7
 * @run main DocLintTester -Xmsgs:-missing MissingReturnTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     8
 * @run main DocLintTester -Xmsgs:missing -ref MissingReturnTest.out MissingReturnTest.java
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
     9
 */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    10
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    11
/** . */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    12
public class MissingReturnTest {
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    13
    /** no return allowed */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    14
    MissingReturnTest() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    15
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    16
    /** no return allowed */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    17
    void return_void() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    18
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    19
    /** no return required */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    20
    Void return_Void() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    21
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    22
    /** */
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    23
    int missingReturn() { }
d0022ae20516 8004832: Add new doclint package
jjg
parents:
diff changeset
    24
}