Skip to content

Use buildOrThrow instead of build for ImmutableMap. #3394

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

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dependencies {

testAnnotationProcessor project(':encoders:firebase-encoders-processor')

testImplementation 'com.google.guava:guava:30.0-jre'
testImplementation 'com.google.guava:guava:31.0-jre'
testImplementation 'junit:junit:4.13.1'
testImplementation 'com.google.protobuf:protobuf-java-util:3.11.0'
testImplementation 'com.google.truth.extensions:truth-proto-extension:1.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void test2() throws InvalidProtocolBufferException {
.put("noValue", new Fixed())
.put("value", new Fixed(1, 2, 3, 4))
.put("", new Fixed())
.build(),
.buildOrThrow(),
ImmutableList.of(
new OtherTypes("hello", new byte[0], false, true),
new OtherTypes("", new byte[] {42}, true, false),
Expand Down