8054877: javadoc issues in javax.print
authoryan
Mon, 22 Sep 2014 11:23:19 +0400
changeset 26754 317ece99e83d
parent 26753 00b27213d86c
child 26755 70eafa5df34b
8054877: javadoc issues in javax.print Summary: Fixes "no @throws or @exception tag" issues in javax.print. Reviewed-by: prr Contributed-by: anisha.nagarajan1@gmail.com
jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java
--- a/jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java	Fri Sep 19 11:19:38 2014 -0700
+++ b/jdk/src/java.desktop/share/classes/javax/print/DocFlavor.java	Mon Sep 22 11:23:19 2014 +0400
@@ -610,6 +610,9 @@
 
     /**
      * 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 @@
     /**
      * 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