From d9503904f638975ed7ad676907e13dfbaa199794 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 13 Nov 2026 15:21:47 +0100 Subject: [PATCH] core: Suppress removal warning in NoopSslSession SSLSession.getPeerCertificateChain() and javax.security.cert.X509Certificate are deprecated for removal, which javac reports separately from regular deprecation when compiling against a recent JDK. --- core/src/main/java/io/grpc/internal/NoopSslSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/io/grpc/internal/NoopSslSession.java b/core/src/main/java/io/grpc/internal/NoopSslSession.java index 9a79d281ad5..1d0ace31f84 100644 --- a/core/src/main/java/io/grpc/internal/NoopSslSession.java +++ b/core/src/main/java/io/grpc/internal/NoopSslSession.java @@ -37,7 +37,7 @@ public SSLSessionContext getSessionContext() { } @Override - @SuppressWarnings("deprecation") + @SuppressWarnings({"deprecation", "removal"}) public javax.security.cert.X509Certificate[] getPeerCertificateChain() { throw new UnsupportedOperationException("This method is deprecated and marked for removal. " + "Use the getPeerCertificates() method instead.");