Skip to content

Commit 3ed4333

Browse files
committed
address comment
1 parent 38fa277 commit 3ed4333

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/GapicSpannerRpc.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
import java.nio.charset.Charset;
194194
import java.nio.charset.StandardCharsets;
195195
import java.time.Duration;
196-
import java.util.Arrays;
196+
import java.util.Collections;
197197
import java.util.Comparator;
198198
import java.util.HashMap;
199199
import java.util.List;
@@ -371,7 +371,8 @@ public GapicSpannerRpc(final SpannerOptions options) {
371371
defaultChannelProviderBuilder.setAttemptDirectPath(true);
372372
// This will let the credentials try to fetch a hard-bound access token if the runtime
373373
// environment supports it.
374-
defaultChannelProviderBuilder.setAllowHardBoundTokenTypes(Arrays.asList(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS));
374+
defaultChannelProviderBuilder.setAllowHardBoundTokenTypes(
375+
Collections.singletonList(InstantiatingGrpcChannelProvider.HardBoundTokenTypes.ALTS));
375376
defaultChannelProviderBuilder.setAttemptDirectPathXds();
376377
}
377378
if (options.isUseVirtualThreads()) {

0 commit comments

Comments
 (0)