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

review: refactor: use java 11 immutable lists where appropriate #4209

Merged
merged 5 commits into from
Oct 6, 2021

Conversation

SirYwell
Copy link
Collaborator

@SirYwell SirYwell commented Oct 6, 2021

This replaces usages of Collections.unmodifiableX() when it was used to create an immutable collection (in most cases by wrapping a newly creating collection).

This does not touch places where Collections.unmodifiableX() is used to expose an unmodifiable view for a collection that might be changed internally.

@SirYwell SirYwell changed the title wip: refactor: use java 11 immutable lists where appropriate review: refactor: use java 11 immutable lists where appropriate Oct 6, 2021
Copy link
Collaborator

@slarse slarse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good, thanks @SirYwell. Finally we get all of those nice helper methods for collections!

@slarse slarse merged commit ea85cfb into INRIA:master Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants