RFR: 8254979: Class.getSimpleName() returns non-empty for lambda and method

Joe Darcy joe.darcy at oracle.com
Wed Mar 17 23:26:16 UTC 2021


Hello,

On 3/17/2021 3:56 PM, jmehrens wrote:
> On Tue, 16 Mar 2021 22:24:55 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>
>
[snip]

>> 780:
>> 781:     /**
>> 782:      *{@return {@code true} if and only if this class has the synthetic modifier
> The braces around return tag are allowed?  "{@return ...} vs. "@return ..." Seems inconsistent with other uses of return tags.

Yes; after a recently-added javadoc feature in JDK 16:

     JDK-8075778: Add javadoc tag to avoid duplication of return 
information in simple situations.
     https://bugs.openjdk.java.net/browse/JDK-8075778

The usage allow an explicit @return tag to be elided when it is the same 
as the first sentence of the javadoc.

The docs in the java.compiler module have been updated to use the feature.

HTH,

-Joe



More information about the core-libs-dev mailing list