--- a/src/java.base/share/classes/java/security/cert/CertPath.java Thu Aug 29 10:09:27 2019 -0700
+++ b/src/java.base/share/classes/java/security/cert/CertPath.java Thu Aug 29 10:52:21 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 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
@@ -119,6 +119,7 @@
*/
public abstract class CertPath implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 6068470306649138683L;
private String type; // the type of certificates in this chain
@@ -282,6 +283,7 @@
* @throws ObjectStreamException if a {@code CertPathRep} object
* representing this certification path could not be created
*/
+ @java.io.Serial
protected Object writeReplace() throws ObjectStreamException {
try {
return new CertPathRep(type, getEncoded());
@@ -300,6 +302,7 @@
*/
protected static class CertPathRep implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 3015633072427920915L;
/** The Certificate type */
@@ -327,6 +330,7 @@
* @throws ObjectStreamException if a {@code CertPath} could not
* be constructed
*/
+ @java.io.Serial
protected Object readResolve() throws ObjectStreamException {
try {
CertificateFactory cf = CertificateFactory.getInstance(type);