Thu, 26 Jul 2018 15:47:44 +0800
Added tag mips64el-jdk8u172-b13 for changeset a5ddc08adcc0
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 8004832 |
aoqi@0 | 4 | * @summary Add new doclint package |
aoqi@0 | 5 | * @build DocLintTester |
aoqi@0 | 6 | * @run main DocLintTester -Xmsgs:-missing MissingReturnTest.java |
aoqi@0 | 7 | * @run main DocLintTester -Xmsgs:missing -ref MissingReturnTest.out MissingReturnTest.java |
aoqi@0 | 8 | */ |
aoqi@0 | 9 | |
aoqi@0 | 10 | /** . */ |
aoqi@0 | 11 | public class MissingReturnTest { |
aoqi@0 | 12 | /** no return allowed */ |
aoqi@0 | 13 | MissingReturnTest() { } |
aoqi@0 | 14 | |
aoqi@0 | 15 | /** no return allowed */ |
aoqi@0 | 16 | void return_void() { } |
aoqi@0 | 17 | |
aoqi@0 | 18 | /** no return required */ |
aoqi@0 | 19 | Void return_Void() { } |
aoqi@0 | 20 | |
aoqi@0 | 21 | /** */ |
aoqi@0 | 22 | int missingReturn() { } |
aoqi@0 | 23 | } |