<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <pre>612      * Write the instance to a stream (ie serialize the object).
<span class="new"> 613      * </span>
<span class="new"> 614      * @exception IOException Thrown if there was an I/O error while creating</span>
<span class="new"> 615      * the output stream</span>
 616      */
 617     private void writeObject(ObjectOutputStream s) throws IOException {
 618 
 619         s.defaultWriteObject();
 620         s.writeObject(myMimeType.getMimeType());
 621     }

hmm .. seems like the output stream is your parameter so its already created.

If you look at the methods on ObjectOutputStream you'll see they say :-

     * @throws  IOException if I/O errors occur while writing to the underlying
     *          stream

I think that you just want the same text.

Same should work for readObject except its "reading from" not "writing to"

Also for this one :-

<meta http-equiv="content-type" content="text/html; charset=UTF-8"><span class="new">626      * @exception ClassNotFoundException Thrown if there was an error finding</span>
<span class="new"> 627      * the class </span><pre></pre>you need to remember that its not "the" class - as the object stream may
reference a graph of objects of varying classes and you'll get this exception if any
class is not found. So more like this :-

     * @throws  ClassNotFoundException if the class of a serialized object
     *          could not be found.


-phil.
</pre>
      On 8/12/14 11:53 AM, Anisha Nagarajan wrote:<br>
    </div>
    <blockquote
cite="mid:CAHLzq=YnYQfS0ghqJ-Ob=y_6=vg0_Q-tLn=kNJOCWznrP4bV2A@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span
          style="font-family:arial,sans-serif;font-size:13px">Hi,</span>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">Please
          review the fix for the following bug:</div>
        <div style="font-family:arial,sans-serif;font-size:13px"><a
            moz-do-not-send="true"
            href="https://bugs.openjdk.java.net/browse/JDK-8054877">https://bugs.openjdk.java.net/browse/JDK-8054877</a><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">
          <br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">Here is
          the corresponding webrev:</div>
        <div style="font-family:arial,sans-serif;font-size:13px"><a
            moz-do-not-send="true"
            href="http://cr.openjdk.java.net/%7Essides/8054877/8054877.0">http://cr.openjdk.java.net/~ssides/8054877/8054877.0</a><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">This
          fix addresses the missing @exception tags for IOExceptions and
          ClassNotFoundExceptions in DocFlavor.java.</div>
        <div style="font-family:arial,sans-serif;font-size:13px"><br>
        </div>
        <div style="font-family:arial,sans-serif;font-size:13px">Thank
          you,</div>
        <div style="font-family:arial,sans-serif;font-size:13px">Anisha
          Nagarajan</div>
      </div>
    </blockquote>
    <br>
  </body>
</html>