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

Pavel Rappo prappo at openjdk.org
Sun Sep 21 15:46:12 UTC 2025


On Sun, 21 Sep 2025 15:24:29 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> Although, I now wonder why the default implementation is like that.

Perhaps even that is not a mystery. If a view has a reference to the original list anyway, why not use it?

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

PR Comment: https://git.openjdk.org/jdk/pull/27406#issuecomment-3316076045


More information about the core-libs-dev mailing list