8160247: Mark deprecated javax.security.cert APIs with forRemoval=true

Reviewed-by: weijun
This commit is contained in:
Xue-Lei Andrew Fan 2019-03-13 07:14:50 -07:00
parent d845c397ea
commit 42cb9bf51a
13 changed files with 36 additions and 24 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -162,7 +162,8 @@ public class HandshakeCompletedEvent extends EventObject
* array of {@code java.security.cert.Certificate} should
* be used instead.
*/
@Deprecated(since="9")
@SuppressWarnings("removal")
@Deprecated(since="9", forRemoval=true)
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
throws SSLPeerUnverifiedException
{

View file

@ -282,7 +282,8 @@ public interface SSLSession {
* array of {@code java.security.cert.Certificate} should
* be used instead.
*/
@Deprecated(since="9")
@SuppressWarnings("removal")
@Deprecated(since="9", forRemoval=true)
public javax.security.cert.X509Certificate [] getPeerCertificateChain()
throws SSLPeerUnverifiedException;