src/java.base/share/classes/java/nio/file/DirectoryIteratorException.java
changeset 57956 e0b8b019d2f5
parent 47216 71c04702a3d5
equal deleted inserted replaced
57955:18863bf3501f 57956:e0b8b019d2f5
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    41  */
    41  */
    42 
    42 
    43 public final class DirectoryIteratorException
    43 public final class DirectoryIteratorException
    44     extends ConcurrentModificationException
    44     extends ConcurrentModificationException
    45 {
    45 {
       
    46     @java.io.Serial
    46     private static final long serialVersionUID = -6012699886086212874L;
    47     private static final long serialVersionUID = -6012699886086212874L;
    47 
    48 
    48     /**
    49     /**
    49      * Constructs an instance of this class.
    50      * Constructs an instance of this class.
    50      *
    51      *
    74      *
    75      *
    75      * @throws  InvalidObjectException
    76      * @throws  InvalidObjectException
    76      *          if the object is invalid or has a cause that is not
    77      *          if the object is invalid or has a cause that is not
    77      *          an {@code IOException}
    78      *          an {@code IOException}
    78      */
    79      */
       
    80     @java.io.Serial
    79     private void readObject(ObjectInputStream s)
    81     private void readObject(ObjectInputStream s)
    80         throws IOException, ClassNotFoundException
    82         throws IOException, ClassNotFoundException
    81     {
    83     {
    82         s.defaultReadObject();
    84         s.defaultReadObject();
    83         Throwable cause = super.getCause();
    85         Throwable cause = super.getCause();