diff --git a/jdk/src/share/classes/java/security/PrivateKey.java b/jdk/src/share/classes/java/security/PrivateKey.java index 40f112aa2fd..7d8a7ea7041 100644 --- a/jdk/src/share/classes/java/security/PrivateKey.java +++ b/jdk/src/share/classes/java/security/PrivateKey.java @@ -40,7 +40,8 @@ package java.security; * sensitive key information to be destroyed, cleared, or in the case * where such information is immutable, unreferenced. * Finally, since {@code PrivateKey} is {@code Serializable}, implementations - * should also override {@link java.io.ObjectOutputStream.writeObject} + * should also override + * {@link java.io.ObjectOutputStream#writeObject(java.lang.Object)} * to prevent keys that have been destroyed from being serialized. * * @see Key diff --git a/jdk/src/share/classes/javax/crypto/SecretKey.java b/jdk/src/share/classes/javax/crypto/SecretKey.java index c32eb7108b6..e03639ab42a 100644 --- a/jdk/src/share/classes/javax/crypto/SecretKey.java +++ b/jdk/src/share/classes/javax/crypto/SecretKey.java @@ -40,7 +40,8 @@ package javax.crypto; * sensitive key information to be destroyed, cleared, or in the case * where such information is immutable, unreferenced. * Finally, since {@code SecretKey} is {@code Serializable}, implementations - * should also override {@link java.io.ObjectOutputStream.writeObject} + * should also override + * {@link java.io.ObjectOutputStream#writeObject(java.lang.Object)} * to prevent keys that have been destroyed from being serialized. * *

Keys that implement this interface return the string {@code RAW}