From 538ebe3eec7409203215ec42dc31fdd60eb563c5 Mon Sep 17 00:00:00 2001 From: ldetmer <1771267+ldetmer@users.noreply.github.com> Date: Fri, 28 Mar 2025 08:38:55 -0400 Subject: [PATCH] chore: add suppress warning for TrustAllX509TrustManager since that is what the method is actually supposed to do --- .../src/main/java/com/google/api/client/util/SslUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/google-http-client/src/main/java/com/google/api/client/util/SslUtils.java b/google-http-client/src/main/java/com/google/api/client/util/SslUtils.java index a578c7383..e7719d4f1 100644 --- a/google-http-client/src/main/java/com/google/api/client/util/SslUtils.java +++ b/google-http-client/src/main/java/com/google/api/client/util/SslUtils.java @@ -157,9 +157,11 @@ public static SSLContext trustAllSSLContext() throws GeneralSecurityException { new TrustManager[] { new X509TrustManager() { + @SuppressWarnings("TrustAllX509TrustManager") public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {} + @SuppressWarnings("TrustAllX509TrustManager") public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {}