RFR: 8368178: Add specialization of SequencedCollection methods to emptyList, singletonList and nCopies [v2]
Roger Riggs
rriggs at openjdk.org
Mon Sep 22 16:00:59 UTC 2025
On Sun, 21 Sep 2025 10:31:06 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.
>
> 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
Changes requested by rriggs (Reviewer).
src/java.base/share/classes/java/util/Collections.java line 4948:
> 4946: @Override
> 4947: public List<E> reversed() {
> 4948: return this;
Java indentation is 4 spaces. tnx.
-------------
PR Review: https://git.openjdk.org/jdk/pull/27406#pullrequestreview-3253643932
PR Review Comment: https://git.openjdk.org/jdk/pull/27406#discussion_r2369086501
More information about the core-libs-dev
mailing list