Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit 913c55d

Browse files
committed
fix Set.of
1 parent fb064c9 commit 913c55d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/grpc/BigtableTransportChannelProvider.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
import io.grpc.StatusRuntimeException;
4040
import java.io.IOException;
4141
import java.time.Duration;
42+
import java.util.Arrays;
43+
import java.util.HashSet;
4244
import java.util.Map;
4345
import java.util.Set;
4446
import java.util.concurrent.Executor;
@@ -207,7 +209,9 @@ public TransportChannel getTransportChannel() throws IOException {
207209
.setEnableFallback(true)
208210
.setPeriod(Duration.ofMinutes(1))
209211
.setErroneousStates(
210-
Set.of(UNAVAILABLE, UNAUTHENTICATED, DEADLINE_EXCEEDED, UNKNOWN, UNIMPLEMENTED))
212+
new HashSet<>(
213+
Arrays.asList(UNAVAILABLE, UNAUTHENTICATED, DEADLINE_EXCEEDED, UNKNOWN, UNIMPLEMENTED))
214+
)
211215
.setFallbackProbingInterval(Duration.ofMinutes(15))
212216
.setPrimaryProbingInterval(Duration.ofMinutes(1))
213217
.setMinFailedCalls(3)

0 commit comments

Comments
 (0)