Skip to content

Commit bce1a75

Browse files
authored
Use buildOrThrow instead of build for ImmutableMap. (#3394)
This method have been added in guava 31, so we are also updating the dependency.
1 parent 2db9b55 commit bce1a75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

encoders/firebase-encoders-proto/firebase-encoders-proto.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies {
4242

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

45-
testImplementation 'com.google.guava:guava:30.0-jre'
45+
testImplementation 'com.google.guava:guava:31.0-jre'
4646
testImplementation 'junit:junit:4.13.1'
4747
testImplementation 'com.google.protobuf:protobuf-java-util:3.11.0'
4848
testImplementation 'com.google.truth.extensions:truth-proto-extension:1.0'

encoders/firebase-encoders-proto/src/test/java/com/google/firebase/encoders/proto/WithCollectionsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void test2() throws InvalidProtocolBufferException {
5151
.put("noValue", new Fixed())
5252
.put("value", new Fixed(1, 2, 3, 4))
5353
.put("", new Fixed())
54-
.build(),
54+
.buildOrThrow(),
5555
ImmutableList.of(
5656
new OtherTypes("hello", new byte[0], false, true),
5757
new OtherTypes("", new byte[] {42}, true, false),

0 commit comments

Comments
 (0)