< prev index next >

src/java.base/share/classes/java/net/URI.java

Print this page

        

*** 501,511 **** { // Note: Comments containing the word "ASSERT" indicate places where a // throw of an InternalError should be replaced by an appropriate assertion // statement once asserts are enabled in the build. ! static final long serialVersionUID = -6052424284110960213L; // -- Properties and components of this instance -- --- 501,511 ---- { // Note: Comments containing the word "ASSERT" indicate places where a // throw of an InternalError should be replaced by an appropriate assertion // statement once asserts are enabled in the build. ! @java.io.Serial static final long serialVersionUID = -6052424284110960213L; // -- Properties and components of this instance --
*** 1775,1784 **** --- 1775,1785 ---- * method of the given object-output stream is invoked. </p> * * @param os The object-output stream to which this object * is to be written */ + @java.io.Serial private void writeObject(ObjectOutputStream os) throws IOException { defineString(); os.defaultWriteObject(); // Writes the string field only
*** 1792,1801 **** --- 1793,1803 ---- * then parsed in the usual way. * * @param is The object-input stream from which this object * is being read */ + @java.io.Serial private void readObject(ObjectInputStream is) throws ClassNotFoundException, IOException { port = -1; // Argh is.defaultReadObject();
< prev index next >