mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8229999: Apply java.io.Serial annotations to security types in java.base
Reviewed-by: rriggs, mullan
This commit is contained in:
parent
470d32df73
commit
6d4ef5aaf3
158 changed files with 377 additions and 141 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 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
|
||||
|
@ -63,11 +63,13 @@ import java.io.IOException;
|
|||
final class CryptoPermissions extends PermissionCollection
|
||||
implements Serializable {
|
||||
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 4946547168093391015L;
|
||||
|
||||
/**
|
||||
* @serialField perms java.util.Hashtable
|
||||
*/
|
||||
@java.io.Serial
|
||||
private static final ObjectStreamField[] serialPersistentFields = {
|
||||
new ObjectStreamField("perms", Hashtable.class),
|
||||
};
|
||||
|
@ -436,6 +438,7 @@ implements Serializable {
|
|||
return pc;
|
||||
}
|
||||
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream s)
|
||||
throws IOException, ClassNotFoundException {
|
||||
ObjectInputStream.GetField fields = s.readFields();
|
||||
|
@ -450,6 +453,7 @@ implements Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
@java.io.Serial
|
||||
private void writeObject(ObjectOutputStream s) throws IOException {
|
||||
Hashtable<String,PermissionCollection> permTable =
|
||||
new Hashtable<>(perms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue