Skip to content

Commit

Permalink
[Step 2] Update non-third party change for jackson2
Browse files Browse the repository at this point in the history
Follow up for #15215 and Step two for #15176

Closes #15295.

PiperOrigin-RevId: 443050332
  • Loading branch information
ThomasCJY authored and copybara-github committed Apr 20, 2022
1 parent d3c38df commit d8feb4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import build.bazel.remote.execution.v2.Digest;
import build.bazel.remote.execution.v2.RequestMetadata;
import com.google.api.client.json.GenericJson;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.client.json.gson.GsonFactory;
import com.google.common.collect.ImmutableList;
import com.google.common.util.concurrent.ListeningScheduledExecutorService;
import com.google.common.util.concurrent.MoreExecutors;
Expand Down Expand Up @@ -135,7 +135,7 @@ protected GrpcCacheClient newClient(
json.put("client_secret", "foo");
json.put("refresh_token", "bar");
Scratch scratch = new Scratch();
scratch.file(authTlsOptions.googleCredentials, new JacksonFactory().toString(json));
scratch.file(authTlsOptions.googleCredentials, new GsonFactory().toString(json));

CallCredentialsProvider callCredentialsProvider;
try (InputStream in = scratch.resolve(authTlsOptions.googleCredentials).getInputStream()) {
Expand Down

0 comments on commit d8feb4d

Please sign in to comment.