src/java.base/share/classes/jdk/internal/org/xml/sax/SAXException.java
changeset 57956 e0b8b019d2f5
parent 48837 a262b919311a
--- a/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXException.java	Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXException.java	Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -178,6 +178,7 @@
     // Internal state.
     //////////////////////////////////////////////////////////////////////
 
+    @java.io.Serial
     private static final ObjectStreamField[] serialPersistentFields = {
         new ObjectStreamField( "exception", Exception.class )
     };
@@ -188,6 +189,7 @@
      * @param out stream used for serialization.
      * @throws IOException thrown by <code>ObjectOutputStream</code>
      */
+    @java.io.Serial
     private void writeObject(ObjectOutputStream out)
             throws IOException {
         ObjectOutputStream.PutField fields = out.putFields();
@@ -204,6 +206,7 @@
      * @throws IOException            thrown by <code>ObjectInputStream</code>
      * @throws ClassNotFoundException thrown by <code>ObjectInputStream</code>
      */
+    @java.io.Serial
     private void readObject(ObjectInputStream in)
             throws IOException, ClassNotFoundException {
         ObjectInputStream.GetField fields = in.readFields();
@@ -233,6 +236,7 @@
     }
 
     // Added serialVersionUID to preserve binary compatibility
+    @java.io.Serial
     static final long serialVersionUID = 583241635256073760L;
 }