8209304: Deprecate serialVersionUID fields in interfaces

Reviewed-by: lancea, mullan, rriggs, smarks
This commit is contained in:
Joe Darcy 2018-08-17 13:37:01 -07:00
parent 4dfa58d553
commit 07ed14c5cf
20 changed files with 106 additions and 23 deletions

View file

@ -41,8 +41,12 @@ public interface RSAPublicKey extends java.security.PublicKey, RSAKey
* The type fingerprint that is set to indicate
* serialization compatibility with a previous
* version of the type.
*
* @deprecated A {@code serialVersionUID} field in an interface is
* ineffectual. Do not use; no replacement.
*/
@SuppressWarnings("serial") // serialVersionUID in an interface is ineffectual
@Deprecated
@SuppressWarnings("serial")
static final long serialVersionUID = -8727434096241101194L;
/**