From ada2c7577219e538c2ec10ee946eaaf61fc3d379 Mon Sep 17 00:00:00 2001 From: Anisha Nagarajan Date: Mon, 22 Sep 2014 11:23:19 +0400 Subject: [PATCH] 8054877: javadoc issues in javax.print Fixes "no @throws or @exception tag" issues in javax.print. Reviewed-by: prr --- .../java.desktop/share/classes/javax/print/DocFlavor.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java b/jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java index cb00e00753b..bfc5cee66b7 100644 --- a/jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java +++ b/jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java @@ -610,6 +610,9 @@ public class DocFlavor implements Serializable, Cloneable { /** * Write the instance to a stream (ie serialize the object). + * + * @throws IOException if I/O errors occur while writing to the underlying + * stream */ private void writeObject(ObjectOutputStream s) throws IOException { @@ -620,6 +623,10 @@ public class DocFlavor implements Serializable, Cloneable { /** * Reconstitute an instance from a stream (that is, deserialize it). * + * @throws ClassNotFoundException if the class of a serialized object could + * not be found. + * @throws IOException if I/O errors occur while reading from the underlying + * stream * @serialData * The serialised form of a DocFlavor is the String naming the * representation class followed by the String representing the canonical