test/tools/doclint/EmptyReturnTest.java

Wed, 23 Oct 2013 07:50:04 +0200

author
jlahoda
date
Wed, 23 Oct 2013 07:50:04 +0200
changeset 2165
864dafc5ab7a
parent 1465
a22f23fb7abf
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8026861: Wrong LineNumberTable for variable declarations in lambdas
Summary: Setting or correcting positions for many trees produced by LambdaToMethod.
Reviewed-by: vromero, rfield

     1 /*
     2  * @test /nodynamiccopyright/
     3  * @bug 8004832
     4  * @summary Add new doclint package
     5  * @build DocLintTester
     6  * @run main DocLintTester -Xmsgs:-syntax EmptyReturnTest.java
     7  * @run main DocLintTester -Xmsgs:syntax -ref EmptyReturnTest.out EmptyReturnTest.java
     8  */
    10 /** . */
    11 public class EmptyReturnTest {
    12     /** @return */
    13     int emptyReturn() { }
    14 }

mercurial