File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 193193import java .nio .charset .Charset ;
194194import java .nio .charset .StandardCharsets ;
195195import java .time .Duration ;
196- import java .util .Arrays ;
196+ import java .util .Collections ;
197197import java .util .Comparator ;
198198import java .util .HashMap ;
199199import 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 ()) {
You can’t perform that action at this time.
0 commit comments