Skip to content

Commit a2c4a82

Browse files
committed
Use StandardCharsets
Signed-off-by: Appu Goundan <appu@google.com>
1 parent 2ad9f5b commit a2c4a82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sigstore-java/src/test/java/dev/sigstore/testing/MockOAuth2ServerExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
package dev.sigstore.testing;
1717

1818
import com.gargoylesoftware.htmlunit.WebClient;
19-
import com.google.common.base.Charsets;
2019
import com.google.common.io.Resources;
2120
import dev.sigstore.oidc.client.OidcException;
2221
import dev.sigstore.oidc.client.OidcToken;
2322
import dev.sigstore.oidc.client.WebOidcClient;
2423
import dev.sigstore.trustroot.Service;
2524
import java.io.IOException;
25+
import java.nio.charset.StandardCharsets;
2626
import no.nav.security.mock.oauth2.MockOAuth2Server;
2727
import no.nav.security.mock.oauth2.OAuth2Config;
2828
import org.junit.jupiter.api.extension.*;
@@ -44,7 +44,7 @@ public void beforeEach(ExtensionContext context) throws Exception {
4444
try {
4545
var oauthServerConfig =
4646
Resources.toString(
47-
Resources.getResource("dev/sigstore/oidc/server/config.json"), Charsets.UTF_8);
47+
Resources.getResource("dev/sigstore/oidc/server/config.json"), StandardCharsets.UTF_8);
4848
var cfg = OAuth2Config.Companion.fromJson(oauthServerConfig);
4949
mockOAuthServer = new MockOAuth2Server(cfg);
5050
mockOAuthServer.start();

0 commit comments

Comments
 (0)