< prev index next >

src/java.base/share/classes/java/nio/file/DirectoryIteratorException.java

Print this page

        

@@ -41,10 +41,11 @@
  */
 
 public final class DirectoryIteratorException
     extends ConcurrentModificationException
 {
+    @java.io.Serial
     private static final long serialVersionUID = -6012699886086212874L;
 
     /**
      * Constructs an instance of this class.
      *

@@ -74,10 +75,11 @@
      *
      * @throws  InvalidObjectException
      *          if the object is invalid or has a cause that is not
      *          an {@code IOException}
      */
+    @java.io.Serial
     private void readObject(ObjectInputStream s)
         throws IOException, ClassNotFoundException
     {
         s.defaultReadObject();
         Throwable cause = super.getCause();
< prev index next >