@@ -195,6 +195,7 @@ public final class FilePermission extends Permission implements Serializable {
195195// return sb.toString();
196196// }
197197
198+ @ java .io .Serial
198199 private static final long serialVersionUID = 7930732926638008763L ;
199200
200201 /**
@@ -1040,6 +1041,7 @@ public PermissionCollection newPermissionCollection() {
10401041 * to a stream. The actions are serialized, and the superclass
10411042 * takes care of the name.
10421043 */
1044+ @ java .io .Serial
10431045 private void writeObject (ObjectOutputStream s )
10441046 throws IOException
10451047 {
@@ -1054,6 +1056,7 @@ private void writeObject(ObjectOutputStream s)
10541056 * readObject is called to restore the state of the FilePermission from
10551057 * a stream.
10561058 */
1059+ @ java .io .Serial
10571060 private void readObject (ObjectInputStream s )
10581061 throws IOException , ClassNotFoundException
10591062 {
@@ -1210,6 +1213,7 @@ public Enumeration<Permission> elements() {
12101213 return perms .elements ();
12111214 }
12121215
1216+ @ java .io .Serial
12131217 private static final long serialVersionUID = 2202956749081564585L ;
12141218
12151219 // Need to maintain serialization interoperability with earlier releases,
@@ -1220,6 +1224,7 @@ public Enumeration<Permission> elements() {
12201224 * @serialField permissions java.util.Vector
12211225 * A list of FilePermission objects.
12221226 */
1227+ @ java .io .Serial
12231228 private static final ObjectStreamField [] serialPersistentFields = {
12241229 new ObjectStreamField ("permissions" , Vector .class ),
12251230 };
@@ -1231,6 +1236,7 @@ public Enumeration<Permission> elements() {
12311236 * Writes the contents of the perms field out as a Vector for
12321237 * serialization compatibility with earlier releases.
12331238 */
1239+ @ java .io .Serial
12341240 private void writeObject (ObjectOutputStream out ) throws IOException {
12351241 // Don't call out.defaultWriteObject()
12361242
@@ -1245,6 +1251,7 @@ private void writeObject(ObjectOutputStream out) throws IOException {
12451251 /*
12461252 * Reads in a Vector of FilePermissions and saves them in the perms field.
12471253 */
1254+ @ java .io .Serial
12481255 private void readObject (ObjectInputStream in )
12491256 throws IOException , ClassNotFoundException
12501257 {
0 commit comments