mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8300866: Declare some classes final in java.io
Reviewed-by: alanb
This commit is contained in:
parent
1a3cb8c501
commit
d117350875
5 changed files with 12 additions and 14 deletions
|
@ -1871,7 +1871,7 @@ public final class ObjectStreamClass implements Serializable {
|
|||
* Class for computing and caching field/constructor/method signatures
|
||||
* during serialVersionUID calculation.
|
||||
*/
|
||||
private static class MemberSignature {
|
||||
private static final class MemberSignature {
|
||||
|
||||
public final Member member;
|
||||
public final String name;
|
||||
|
@ -1902,7 +1902,7 @@ public final class ObjectStreamClass implements Serializable {
|
|||
* Class for setting and retrieving serializable field values in batch.
|
||||
*/
|
||||
// REMIND: dynamically generate these?
|
||||
private static class FieldReflector {
|
||||
private static final class FieldReflector {
|
||||
|
||||
/** handle for performing unsafe operations */
|
||||
private static final Unsafe UNSAFE = Unsafe.getUnsafe();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue