Skip to content

Commit 538ebe3

Browse files
committed
chore: add suppress warning for TrustAllX509TrustManager since that is what the method is actually supposed to do
1 parent f89cc4c commit 538ebe3

File tree

1 file changed

+2
-0
lines changed
  • google-http-client/src/main/java/com/google/api/client/util

1 file changed

+2
-0
lines changed

google-http-client/src/main/java/com/google/api/client/util/SslUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,11 @@ public static SSLContext trustAllSSLContext() throws GeneralSecurityException {
157157
new TrustManager[] {
158158
new X509TrustManager() {
159159

160+
@SuppressWarnings("TrustAllX509TrustManager")
160161
public void checkClientTrusted(X509Certificate[] chain, String authType)
161162
throws CertificateException {}
162163

164+
@SuppressWarnings("TrustAllX509TrustManager")
163165
public void checkServerTrusted(X509Certificate[] chain, String authType)
164166
throws CertificateException {}
165167

0 commit comments

Comments
 (0)