Make Lists.transform() views delegate spliterator()/forEach() to the backing list. - #8685
Merged
Merged
Conversation
copybara-service
Bot
force-pushed
the
test_985343551
branch
from
September 21, 2026 18:10
33eaf09 to
f77fd5e
Compare
Lists.transform() views delegate spliterator()/forEach() to the backing list.
copybara-service
Bot
force-pushed
the
test_985343551
branch
3 times, most recently
from
September 23, 2026 18:33
c2127a4 to
8ded235
Compare
…o the backing list. `TransformingRandomAccessList` and `TransformingSequentialList` previously inherited default implementations from `AbstractList`/`AbstractSequentialList`, which lost the backing list's spliterator characteristics (e.g., `IMMUTABLE`), sized/subsized properties, and custom `forEach()` optimizations. Includes a suggestion from @kojallipalli2210-alt on #8589. Fixes #8165. Closes #8589. RELNOTES=`collections`: In `Lists.transform`, delegate `spliterator()` and `forEach()` to the backing list. PiperOrigin-RevId: 986925834
copybara-service
Bot
force-pushed
the
test_985343551
branch
from
September 23, 2026 19:26
8ded235 to
7915234
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make
Lists.transform()views delegatespliterator()/forEach()to the backing list.TransformingRandomAccessListandTransformingSequentialListpreviously inherited default implementations fromAbstractList/AbstractSequentialList, which lost the backing list's spliterator characteristics (e.g.,IMMUTABLE), sized/subsized properties, and customforEach()optimizations.Includes a suggestion from @kojallipalli2210-alt on #8589.
Fixes #8165.
Closes #8589.
RELNOTES=
collections: InLists.transform, delegatespliterator()andforEach()to the backing list.