Skip to content

Commit

Permalink
[4.x] Suppress removed (#7953)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored Jul 22, 2023
1 parent 91565f7 commit 07b5d82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions okhttp/src/test/java/okhttp3/DelegatingSSLSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package okhttp3;

import java.security.Principal;
import java.security.cert.Certificate;
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;

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 07b5d82

Please sign in to comment.