--- a/src/java.base/share/classes/java/security/KeyRep.java Thu Aug 29 10:09:27 2019 -0700
+++ b/src/java.base/share/classes/java/security/KeyRep.java Thu Aug 29 10:52:21 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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
@@ -57,6 +57,7 @@
public class KeyRep implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -4757683898830641853L;
/**
@@ -162,6 +163,7 @@
* encoded key bytes are unrecognized/invalid, of if the
* resolution of the key fails for any reason
*/
+ @java.io.Serial
protected Object readResolve() throws ObjectStreamException {
try {
if (type == Type.SECRET && RAW.equals(format)) {