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

fix: Upgrade to Guava 31 and use ImmutableMap.Builder.buildOrThrow() instead of build() #1103

Merged
merged 1 commit into from
Feb 10, 2022

Conversation

aababilov
Copy link
Collaborator

ImmutableMap.Builder.build() throws if the same key was added to the builder twice. There were thousands of bugs because many people are not aware of that. The build() method is deprecated in Guava 31 and replaced by buildOrThrow() with the same behaviour.

See also: google/guava@4b9c269

ImmutableMap.Builder.build() throws if the same key was added to the builder twice. There were thousands of bugs because many people are not aware of that. The `build()` method is deprecated in Guava 31 and replaced by `buildOrThrow()` with the same behaviour.

See also: google/guava@4b9c269
@aababilov aababilov changed the title fix: Use ImmutableMap.Builder.buildOrThrow() instead of build() fix: Upgrade to Guava 31 and use ImmutableMap.Builder.buildOrThrow() instead of build() Feb 10, 2022
Copy link
Collaborator

@asvechnikov2 asvechnikov2 left a comment

Choose a reason for hiding this comment

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

LGTM

@aababilov aababilov merged commit 2b592fe into MobilityData:master Feb 10, 2022
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.

None yet

2 participants