Skip to content

Commit 07b5d82

Browse files
authored
[4.x] Suppress removed (#7953)
1 parent 91565f7 commit 07b5d82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

okhttp/src/test/java/okhttp3/DelegatingSSLSession.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,17 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package okhttp3;
1718

1819
import java.security.Principal;
1920
import java.security.cert.Certificate;
2021
import javax.net.ssl.SSLPeerUnverifiedException;
2122
import javax.net.ssl.SSLSession;
2223
import javax.net.ssl.SSLSessionContext;
23-
import javax.security.cert.X509Certificate;
2424

2525
/** An {@link SSLSession} that delegates all calls. */
26+
@SuppressWarnings("removal")
2627
public abstract class DelegatingSSLSession implements SSLSession {
2728
protected final SSLSession delegate;
2829

@@ -78,7 +79,7 @@ public DelegatingSSLSession(SSLSession delegate) {
7879
return delegate.getLocalCertificates();
7980
}
8081

81-
@Override public X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException {
82+
@Override public javax.security.cert.X509Certificate[] getPeerCertificateChain() throws SSLPeerUnverifiedException {
8283
return delegate.getPeerCertificateChain();
8384
}
8485

0 commit comments

Comments
 (0)