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

refactor: Replace use of ImmutableList with List.copyOf #577

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented Jun 17, 2021

#331

The package containing ImmutableList is a transitive dependency of Sorald through SonarJava. It's not there anymore in SonarJava 7+, and so this PR removes the two uses of it. The same functionality is available as unmodifiable lists in the standard library, so I don't think it's a good idea to pull in a dependency just for this.

It returns an unmodifiable list
Copy link
Collaborator

@khesoem khesoem left a comment

Choose a reason for hiding this comment

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

LGTM!

@khesoem khesoem merged commit b9ab432 into master Jun 18, 2021
@khesoem khesoem deleted the issue/331-remove-use-of-google-immutable-list branch June 18, 2021 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants