Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/immutable sub list iterator #417

Merged
merged 6 commits into from
May 12, 2020

Conversation

SgtSilvio
Copy link
Member

@SgtSilvio SgtSilvio commented May 8, 2020

Motivation
ImmutableList.of(1, 2, 3, 4, 5).subList(1, 3).iterator() iterates over 1, 2, 3, 4, must be 1, 2, 3
ImmutableList.of(1, 2, 3, 4, 5).subList(1, 3).sublist(1, 3) return 3, 4, 5, must error as 5 is out of bounds

Changes
Fixed the bugs and refactoring

@cla-bot cla-bot bot added the cla-signed label May 8, 2020
@SgtSilvio SgtSilvio added the bug label May 8, 2020
@SgtSilvio SgtSilvio added this to the 1.2.1 milestone May 8, 2020
@SgtSilvio SgtSilvio requested a review from a user May 11, 2020 07:51
Fixed ImmutableArray.(last)indexOf
Fixed ImmutableArray.ArrayIterator.next/previous(Index)
Removed unnecessary overrides in ImmutableList implementations
Removed unnecessary overrides in ImmutableIntList implementations
@SgtSilvio SgtSilvio merged commit 3d31b36 into develop May 12, 2020
@SgtSilvio SgtSilvio deleted the bugfix/immutable-sub-list-iterator branch May 12, 2020 20:27
@SgtSilvio SgtSilvio self-assigned this Jun 24, 2020
@SgtSilvio SgtSilvio mentioned this pull request Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant