From 07b5d820a3422e7f99d1ad81d857729a739d6540 Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sat, 22 Jul 2023 19:41:09 +0100 Subject: [PATCH] [4.x] Suppress removed (#7953) --- okhttp/src/test/java/okhttp3/DelegatingSSLSession.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/okhttp/src/test/java/okhttp3/DelegatingSSLSession.java b/okhttp/src/test/java/okhttp3/DelegatingSSLSession.java index 0e15e825b99b..aae7841437fc 100644 --- a/okhttp/src/test/java/okhttp3/DelegatingSSLSession.java +++ b/okhttp/src/test/java/okhttp3/DelegatingSSLSession.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package okhttp3; import java.security.Principal; @@ -20,9 +21,9 @@ import javax.net.ssl.SSLPeerUnverifiedException; import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSessionContext; -import javax.security.cert.X509Certificate; /** An {@link SSLSession} that delegates all calls. */ +@SuppressWarnings("removal") public abstract class DelegatingSSLSession implements SSLSession { protected final SSLSession delegate; @@ -78,7 +79,7 @@ public DelegatingSSLSession(SSLSession delegate) { return delegate.getLocalCertificates(); } - @Override public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException { + @Override public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException { return delegate.getPeerCertificateChain(); }