RFR: 8368178: Add specialization of SequencedCollection methods to emptyList, singletonList and nCopies [v2]
Tagir F. Valeev
tvaleev at openjdk.org
Sun Sep 21 10:31:09 UTC 2025
On Sat, 20 Sep 2025 20:04:42 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
>> Tagir F. Valeev has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Remove extra asterisk to prevent jtreg comment from being parsed as javadoc
>> - JDK-8368178 Add specialization of SequencedCollection methods to emptyList, singletonList and nCopies
>
> test/jdk/java/util/Collections/EmptyListTest.java line 24:
>
>> 22: */
>> 23:
>> 24: /**
>
> A jtreg comment styled as a javadoc comment is one of my pet peeves. IDE and javac (since JDK 23) treats it as a javadoc comment. For example, such a comment has unknown javadoc tags, or may be considered dangling (which is what happens in your case).
Thank you for the review. I copied the comment from another test file and was not sure whether an extra asterisk is important for jtreg. You're right, it looks like it can be omitted.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27406#discussion_r2366165282
More information about the core-libs-dev
mailing list