< prev index next >

## src/java.base/share/classes/java/io/File.java

Print this page

    *** 1,7 ***
      /*
    !  * Copyright (c) 1994, 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) 1994, 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

    *** 2229,10 ***
    --- 2229,13 ---
           * WriteObject is called to save this filename.
           * The separator character is saved also so it can be replaced
           * in case the path is reconstituted on a different host type.
           *
           * @serialData  Default fields followed by separator character.
    +      *
    +      * @param  s the {@code ObjectOutputStream} to which data is written
    +      * @throws IOException if an I/O error occurs
           */
          @java.io.Serial
          private synchronized void writeObject(java.io.ObjectOutputStream s)
              throws IOException
          {

    *** 2243,10 ***
    --- 2246,14 ---
          /**
           * readObject is called to restore this filename.
           * The original separator character is read.  If it is different
           * than the separator character on this system, then the old separator
           * is replaced by the local separator.
    +      *
    +      * @param  s the {@code ObjectInputStream} from which data is read
    +      * @throws IOException if an I/O error occurs
    +      * @throws ClassNotFoundException if a serialized class cannot be loaded
           */
          @java.io.Serial
          private synchronized void readObject(java.io.ObjectInputStream s)
               throws IOException, ClassNotFoundException
          {

< prev index next >