< prev index next >

src/java.sql.rowset/share/classes/javax/sql/rowset/serial/SerialJavaObject.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this
--- 1,7 ---
  /*
!  * Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this

*** 232,10 ***
--- 232,15 ---
      }
  
      /**
       * readObject is called to restore the state of the {@code SerialJavaObject}
       * from a stream.
+      * @param s the {@code ObjectInputStream} to read from.
+      *
+      * @throws  ClassNotFoundException if the class of a serialized object
+      *          could not be found.
+      * @throws  IOException if an I/O error occurs.
       */
      private void readObject(ObjectInputStream s)
              throws IOException, ClassNotFoundException {
  
          ObjectInputStream.GetField fields1 = s.readFields();

*** 257,10 ***
--- 262,12 ---
      }
  
      /**
       * writeObject is called to save the state of the {@code SerialJavaObject}
       * to a stream.
+      * @param s the {@code ObjectOutputStream} to write to.
+      + @throws  IOException if I/O errors occur.
       */
      private void writeObject(ObjectOutputStream s)
              throws IOException {
          ObjectOutputStream.PutField fields = s.putFields();
          fields.put("obj", obj);
< prev index next >