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(); }