--- a/src/java.base/share/classes/java/io/FilePermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/FilePermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -195,6 +195,7 @@
// return sb.toString();
// }
+ @java.io.Serial
private static final long serialVersionUID = 7930732926638008763L;
/**
@@ -1040,6 +1041,7 @@
* to a stream. The actions are serialized, and the superclass
* takes care of the name.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream s)
throws IOException
{
@@ -1054,6 +1056,7 @@
* readObject is called to restore the state of the FilePermission from
* a stream.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
@@ -1210,6 +1213,7 @@
return perms.elements();
}
+ @java.io.Serial
private static final long serialVersionUID = 2202956749081564585L;
// Need to maintain serialization interoperability with earlier releases,
@@ -1220,6 +1224,7 @@
* @serialField permissions java.util.Vector
* A list of FilePermission objects.
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("permissions", Vector.class),
};
@@ -1231,6 +1236,7 @@
* Writes the contents of the perms field out as a Vector for
* serialization compatibility with earlier releases.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
// Don't call out.defaultWriteObject()
@@ -1245,6 +1251,7 @@
/*
* Reads in a Vector of FilePermissions and saves them in the perms field.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{