RFR: 8306075: Micro-optimize Enum.hashCode [v4]
Alan Bateman
alanb at openjdk.org
Mon Apr 17 15:33:40 UTC 2023
On Mon, 17 Apr 2023 15:18:12 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>>> The @implNote is more appropriate for an internal comment. It is not needed to be in the published javadoc; its only useful to someone viewing the source code.
>>
>> Is it a comment to me or to the author? If it's the former, then I note, that if one bothers to mark up a comment, that markup should be valid.
>
> I would change this to be an non-javadoc comment. (Change /** to /*)
> An there is no need for javadoc \implNote or @link javadoc markup.
> There is very little value in being able to generate javadoc for --private.
> (In part because most private implementations are not documented to javadoc standards).
Yes, it is a bit strange to see @implNote here as this is a private field that isn't going to show up in the javadoc. The javadoc for non-transient fields in Serializable classes does show up in the Serialized Form page but this Enum which is special.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13491#discussion_r1168909665
More information about the core-libs-dev
mailing list