# HG changeset patch # User mullan # Date 1510665867 18000 # Node ID 28096878fae5b9f548f2db9181832b5fe9a081fe # Parent fbfe06b70e16bbd2447a4160422e277939c582bb 8175091: Mark the deprecated java.security.{Certificate,Identity,IdentityScope,Signer} APIs with forRemoval=true Reviewed-by: weijun diff -r fbfe06b70e16 -r 28096878fae5 src/java.base/share/classes/java/security/Certificate.java --- a/src/java.base/share/classes/java/security/Certificate.java Mon Nov 13 14:03:36 2017 +0530 +++ b/src/java.base/share/classes/java/security/Certificate.java Tue Nov 14 08:24:27 2017 -0500 @@ -57,13 +57,12 @@ * * @author Benjamin Renaud * @since 1.1 - * @deprecated A new certificate handling package is created in the Java platform. - * This Certificate interface is entirely deprecated and - * is here to allow for a smooth transition to the new - * package. + * @deprecated This class is deprecated and subject to removal in a future + * version of Java SE. It has been replaced by + * {@code java.security.cert.Certificate} and related classes. * @see java.security.cert.Certificate */ -@Deprecated(since="1.2") +@Deprecated(since="1.2", forRemoval=true) public interface Certificate { /** diff -r fbfe06b70e16 -r 28096878fae5 src/java.base/share/classes/java/security/Identity.java --- a/src/java.base/share/classes/java/security/Identity.java Mon Nov 13 14:03:36 2017 +0530 +++ b/src/java.base/share/classes/java/security/Identity.java Tue Nov 14 08:24:27 2017 -0500 @@ -52,12 +52,13 @@ * * @author Benjamin Renaud * @since 1.1 - * @deprecated This class is no longer used. Its functionality has been - * replaced by {@code java.security.KeyStore}, the - * {@code java.security.cert} package, and - * {@code java.security.Principal}. + * @deprecated This class is deprecated and subject to removal in a future + * version of Java SE. It has been replaced by + * {@code java.security.KeyStore}, the {@code java.security.cert} package, + * and {@code java.security.Principal}. */ -@Deprecated(since="1.2") +@Deprecated(since="1.2", forRemoval=true) +@SuppressWarnings("removal") public abstract class Identity implements Principal, Serializable { /** use serialVersionUID from JDK 1.1.x for interoperability */ diff -r fbfe06b70e16 -r 28096878fae5 src/java.base/share/classes/java/security/IdentityScope.java --- a/src/java.base/share/classes/java/security/IdentityScope.java Mon Nov 13 14:03:36 2017 +0530 +++ b/src/java.base/share/classes/java/security/IdentityScope.java Tue Nov 14 08:24:27 2017 -0500 @@ -57,12 +57,13 @@ * @author Benjamin Renaud * @since 1.1 * - * @deprecated This class is no longer used. Its functionality has been - * replaced by {@code java.security.KeyStore}, the - * {@code java.security.cert} package, and - * {@code java.security.Principal}. + * @deprecated This class is deprecated and subject to removal in a future + * version of Java SE. It has been replaced by + * {@code java.security.KeyStore}, the {@code java.security.cert} package, + * and {@code java.security.Principal}. */ -@Deprecated(since="1.2") +@Deprecated(since="1.2", forRemoval=true) +@SuppressWarnings("removal") public abstract class IdentityScope extends Identity { diff -r fbfe06b70e16 -r 28096878fae5 src/java.base/share/classes/java/security/Signer.java --- a/src/java.base/share/classes/java/security/Signer.java Mon Nov 13 14:03:36 2017 +0530 +++ b/src/java.base/share/classes/java/security/Signer.java Tue Nov 14 08:24:27 2017 -0500 @@ -40,12 +40,13 @@ * @author Benjamin Renaud * @since 1.1 * - * @deprecated This class is no longer used. Its functionality has been - * replaced by {@code java.security.KeyStore}, the - * {@code java.security.cert} package, and - * {@code java.security.Principal}. + * @deprecated This class is deprecated and subject to removal in a future + * version of Java SE. It has been replaced by + * {@code java.security.KeyStore}, the {@code java.security.cert} package, + * and {@code java.security.Principal}. */ -@Deprecated(since="1.2") +@Deprecated(since="1.2", forRemoval=true) +@SuppressWarnings("removal") public abstract class Signer extends Identity { private static final long serialVersionUID = -1763464102261361480L;