From 7e312a353d64b55713a1b69068de6768fd4b110a Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sat, 22 Jul 2023 19:22:04 +0100 Subject: [PATCH] Suppress removed --- 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(); }