RFR: 8368178: Add specialization of SequencedCollection methods to emptyList, singletonList and nCopies

Pavel Rappo prappo at openjdk.org
Sat Sep 20 20:20:22 UTC 2025


On Sat, 20 Sep 2025 19:29:11 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:

> Please review this small change. If you have more ideas which classes may miss specializations of SequencedCollection methods, I can add them to this PR as well.

It's a very sensible change; thanks! The only small, orthogonal quibble inline.

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).

-------------

PR Review: https://git.openjdk.org/jdk/pull/27406#pullrequestreview-3249224741
PR Review Comment: https://git.openjdk.org/jdk/pull/27406#discussion_r2365789233


More information about the core-libs-dev mailing list