8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
--- a/src/java.base/share/classes/com/sun/java/util/jar/pack/Attribute.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/com/sun/java/util/jar/pack/Attribute.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2013, 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
@@ -716,6 +716,7 @@
public static
class FormatException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -2542243830788066513L;
private int ctype;
--- a/src/java.base/share/classes/com/sun/java/util/jar/pack/ClassReader.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/com/sun/java/util/jar/pack/ClassReader.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -605,6 +605,7 @@
}
static class ClassFormatException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -3564121733989501833L;
public ClassFormatException(String message) {
--- a/src/java.base/share/classes/com/sun/java/util/jar/pack/Instruction.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/com/sun/java/util/jar/pack/Instruction.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -679,6 +679,7 @@
}
}
static class FormatException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 3175572275651367015L;
FormatException(String message) {
--- a/src/java.base/share/classes/java/io/CharConversionException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/CharConversionException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -33,6 +33,7 @@
public class CharConversionException
extends java.io.IOException
{
+ @java.io.Serial
private static final long serialVersionUID = -8680016352018427031L;
/**
--- a/src/java.base/share/classes/java/io/EOFException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/EOFException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -40,6 +40,7 @@
*/
public
class EOFException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 6433858223774886977L;
/**
--- a/src/java.base/share/classes/java/io/File.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/File.java Thu Aug 29 16:31:34 2019 -0700
@@ -2217,6 +2217,7 @@
*
* @serialData Default fields followed by separator character.
*/
+ @java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
throws IOException
{
@@ -2230,6 +2231,7 @@
* than the separator character on this system, then the old separator
* is replaced by the local separator.
*/
+ @java.io.Serial
private synchronized void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException
{
@@ -2251,6 +2253,7 @@
= UNSAFE.objectFieldOffset(File.class, "prefixLength");
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 301077366599181567L;
// -- Integration with java.nio.file --
--- a/src/java.base/share/classes/java/io/FileNotFoundException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/FileNotFoundException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -41,6 +41,7 @@
*/
public class FileNotFoundException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -897856973823710492L;
/**
--- a/src/java.base/share/classes/java/io/FilePermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/FilePermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -195,6 +195,7 @@
// return sb.toString();
// }
+ @java.io.Serial
private static final long serialVersionUID = 7930732926638008763L;
/**
@@ -1040,6 +1041,7 @@
* to a stream. The actions are serialized, and the superclass
* takes care of the name.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream s)
throws IOException
{
@@ -1054,6 +1056,7 @@
* readObject is called to restore the state of the FilePermission from
* a stream.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
@@ -1210,6 +1213,7 @@
return perms.elements();
}
+ @java.io.Serial
private static final long serialVersionUID = 2202956749081564585L;
// Need to maintain serialization interoperability with earlier releases,
@@ -1220,6 +1224,7 @@
* @serialField permissions java.util.Vector
* A list of FilePermission objects.
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("permissions", Vector.class),
};
@@ -1231,6 +1236,7 @@
* Writes the contents of the perms field out as a Vector for
* serialization compatibility with earlier releases.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
// Don't call out.defaultWriteObject()
@@ -1245,6 +1251,7 @@
/*
* Reads in a Vector of FilePermissions and saves them in the perms field.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/io/IOError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/IOError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
@@ -46,5 +46,6 @@
super(cause);
}
+ @java.io.Serial
private static final long serialVersionUID = 67100927991680413L;
}
--- a/src/java.base/share/classes/java/io/IOException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/IOException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -37,6 +37,7 @@
*/
public
class IOException extends Exception {
+ @java.io.Serial
static final long serialVersionUID = 7818375828146090155L;
/**
--- a/src/java.base/share/classes/java/io/InterruptedIOException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/InterruptedIOException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -41,6 +41,7 @@
*/
public
class InterruptedIOException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 4020568460727500567L;
/**
--- a/src/java.base/share/classes/java/io/InvalidClassException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/InvalidClassException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -40,6 +40,7 @@
*/
public class InvalidClassException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = -4333316296251054416L;
/**
--- a/src/java.base/share/classes/java/io/InvalidObjectException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/InvalidObjectException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -37,6 +37,7 @@
*/
public class InvalidObjectException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = 3233174318281839583L;
/**
--- a/src/java.base/share/classes/java/io/NotActiveException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/NotActiveException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -33,6 +33,7 @@
*/
public class NotActiveException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = -3893467273049808895L;
/**
--- a/src/java.base/share/classes/java/io/NotSerializableException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/NotSerializableException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -35,6 +35,7 @@
*/
public class NotSerializableException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = 2906642554793891381L;
/**
--- a/src/java.base/share/classes/java/io/ObjectStreamClass.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/ObjectStreamClass.java Thu Aug 29 16:31:34 2019 -0700
@@ -84,7 +84,9 @@
public static final ObjectStreamField[] NO_FIELDS =
new ObjectStreamField[0];
+ @java.io.Serial
private static final long serialVersionUID = -6120832682080437368L;
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields =
NO_FIELDS;
--- a/src/java.base/share/classes/java/io/ObjectStreamException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/ObjectStreamException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -33,6 +33,7 @@
*/
public abstract class ObjectStreamException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 7260898174833392607L;
/**
--- a/src/java.base/share/classes/java/io/OptionalDataException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/OptionalDataException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -47,6 +47,7 @@
*/
public class OptionalDataException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = -8011121865681257820L;
/*
--- a/src/java.base/share/classes/java/io/SerializablePermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/SerializablePermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -101,6 +101,7 @@
public final class SerializablePermission extends BasicPermission {
+ @java.io.Serial
private static final long serialVersionUID = 8537212141160296410L;
/**
--- a/src/java.base/share/classes/java/io/StreamCorruptedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/StreamCorruptedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -34,6 +34,7 @@
*/
public class StreamCorruptedException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = 8983558202217591746L;
/**
--- a/src/java.base/share/classes/java/io/SyncFailedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/SyncFailedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -34,6 +34,7 @@
* @since 1.1
*/
public class SyncFailedException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -2353342684412443330L;
/**
--- a/src/java.base/share/classes/java/io/UTFDataFormatException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/UTFDataFormatException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -44,6 +44,7 @@
*/
public
class UTFDataFormatException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 420743449228280612L;
/**
--- a/src/java.base/share/classes/java/io/UncheckedIOException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/UncheckedIOException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -32,6 +32,7 @@
* @since 1.8
*/
public class UncheckedIOException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -8134305061645241065L;
/**
@@ -79,6 +80,7 @@
* if the object is invalid or has a cause that is not
* an {@code IOException}
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/io/UnsupportedEncodingException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/UnsupportedEncodingException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -33,6 +33,7 @@
public class UnsupportedEncodingException
extends IOException
{
+ @java.io.Serial
private static final long serialVersionUID = -4274276298326136670L;
/**
--- a/src/java.base/share/classes/java/io/WriteAbortedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/io/WriteAbortedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -44,6 +44,7 @@
* @since 1.1
*/
public class WriteAbortedException extends ObjectStreamException {
+ @java.io.Serial
private static final long serialVersionUID = -3326426625597282442L;
/**
--- a/src/java.base/share/classes/java/lang/AbstractMethodError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/AbstractMethodError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -37,6 +37,7 @@
*/
public
class AbstractMethodError extends IncompatibleClassChangeError {
+ @java.io.Serial
private static final long serialVersionUID = -1654391082989018462L;
/**
--- a/src/java.base/share/classes/java/lang/ArithmeticException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ArithmeticException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -39,6 +39,7 @@
* @since 1.0
*/
public class ArithmeticException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 2256477558314496007L;
/**
--- a/src/java.base/share/classes/java/lang/ArrayIndexOutOfBoundsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ArrayIndexOutOfBoundsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -32,6 +32,7 @@
* @since 1.0
*/
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {
+ @java.io.Serial
private static final long serialVersionUID = -5116101128118950844L;
/**
--- a/src/java.base/share/classes/java/lang/ArrayStoreException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ArrayStoreException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -39,6 +39,7 @@
*/
public
class ArrayStoreException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -4522193890499838241L;
/**
--- a/src/java.base/share/classes/java/lang/AssertionError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/AssertionError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2011, 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
@@ -41,6 +41,7 @@
* @since 1.4
*/
public class AssertionError extends Error {
+ @java.io.Serial
private static final long serialVersionUID = -5013299493970297370L;
/**
--- a/src/java.base/share/classes/java/lang/Boolean.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Boolean.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -73,6 +73,7 @@
private final boolean value;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -3665804199014368530L;
/**
--- a/src/java.base/share/classes/java/lang/BootstrapMethodError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/BootstrapMethodError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
@@ -40,6 +40,7 @@
* @since 1.7
*/
public class BootstrapMethodError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = 292L;
/**
--- a/src/java.base/share/classes/java/lang/Byte.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Byte.java Thu Aug 29 16:31:34 2019 -0700
@@ -561,5 +561,6 @@
public static final int BYTES = SIZE / Byte.SIZE;
/** use serialVersionUID from JDK 1.1. for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -7183698231559129828L;
}
--- a/src/java.base/share/classes/java/lang/Character.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Character.java Thu Aug 29 16:31:34 2019 -0700
@@ -8293,6 +8293,7 @@
private final char value;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 3786198910865385080L;
/**
--- a/src/java.base/share/classes/java/lang/Class.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Class.java Thu Aug 29 16:31:34 2019 -0700
@@ -3421,6 +3421,7 @@
}
/** use serialVersionUID from JDK 1.1 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 3206093459760846163L;
@@ -3440,6 +3441,7 @@
*
* @see java.io.ObjectStreamClass
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields =
new ObjectStreamField[0];
--- a/src/java.base/share/classes/java/lang/ClassCastException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ClassCastException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -39,6 +39,7 @@
*/
public
class ClassCastException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -9223365651070458532L;
/**
--- a/src/java.base/share/classes/java/lang/ClassCircularityError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ClassCircularityError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -33,6 +33,7 @@
* @since 1.0
*/
public class ClassCircularityError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = 1054362542914539689L;
/**
--- a/src/java.base/share/classes/java/lang/ClassFormatError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ClassFormatError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -35,6 +35,7 @@
*/
public
class ClassFormatError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = -8420114879011949195L;
/**
--- a/src/java.base/share/classes/java/lang/ClassNotFoundException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ClassNotFoundException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -59,6 +59,7 @@
/**
* use serialVersionUID from JDK 1.1.X for interoperability
*/
+ @java.io.Serial
private static final long serialVersionUID = 9176873029745254542L;
/**
@@ -111,6 +112,7 @@
*
* @serialField ex Throwable
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("ex", Throwable.class)
};
@@ -124,6 +126,7 @@
* in the older implementation and ClassNotFoundException::cause
* was set to null.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = s.readFields();
Throwable exception = (Throwable) fields.get("ex", null);
@@ -136,6 +139,7 @@
* To maintain compatibility with older implementation, write a serial
* "ex" field with the cause as the value.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
ObjectOutputStream.PutField fields = out.putFields();
fields.put("ex", super.getCause());
--- a/src/java.base/share/classes/java/lang/CloneNotSupportedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/CloneNotSupportedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -43,6 +43,7 @@
public
class CloneNotSupportedException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 5195511250079656443L;
/**
--- a/src/java.base/share/classes/java/lang/Double.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Double.java Thu Aug 29 16:31:34 2019 -0700
@@ -1102,5 +1102,6 @@
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -9172774392245257468L;
}
--- a/src/java.base/share/classes/java/lang/Enum.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Enum.java Thu Aug 29 16:31:34 2019 -0700
@@ -275,11 +275,13 @@
/**
* prevent default deserialization
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException,
ClassNotFoundException {
throw new InvalidObjectException("can't deserialize enum");
}
+ @java.io.Serial
private void readObjectNoData() throws ObjectStreamException {
throw new InvalidObjectException("can't deserialize enum");
}
--- a/src/java.base/share/classes/java/lang/EnumConstantNotPresentException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/EnumConstantNotPresentException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -38,6 +38,7 @@
*/
@SuppressWarnings("rawtypes") /* rawtypes are part of the public api */
public class EnumConstantNotPresentException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -6046998521960521108L;
/**
--- a/src/java.base/share/classes/java/lang/Error.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Error.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -47,6 +47,7 @@
* @since 1.0
*/
public class Error extends Throwable {
+ @java.io.Serial
static final long serialVersionUID = 4980196508277280342L;
/**
--- a/src/java.base/share/classes/java/lang/Exception.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Exception.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -43,6 +43,7 @@
* @since 1.0
*/
public class Exception extends Throwable {
+ @java.io.Serial
static final long serialVersionUID = -3387516993124229948L;
/**
--- a/src/java.base/share/classes/java/lang/ExceptionInInitializerError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ExceptionInInitializerError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2000, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -50,6 +50,7 @@
/**
* Use serialVersionUID from JDK 1.1.X for interoperability
*/
+ @java.io.Serial
private static final long serialVersionUID = 1521711792217232256L;
/**
@@ -109,6 +110,7 @@
*
* @serialField exception Throwable
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("exception", Throwable.class)
};
@@ -122,6 +124,7 @@
* field in the older implementation and ExceptionInInitializerError::cause
* was set to null.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = s.readFields();
Throwable exception = (Throwable) fields.get("exception", null);
@@ -134,6 +137,7 @@
* To maintain compatibility with older implementation, write a serial
* "exception" field with the cause as the value.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
ObjectOutputStream.PutField fields = out.putFields();
fields.put("exception", super.getCause());
--- a/src/java.base/share/classes/java/lang/Float.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Float.java Thu Aug 29 16:31:34 2019 -0700
@@ -1014,5 +1014,6 @@
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -2671257302660747028L;
}
--- a/src/java.base/share/classes/java/lang/IllegalAccessError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IllegalAccessError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -37,6 +37,7 @@
* @since 1.0
*/
public class IllegalAccessError extends IncompatibleClassChangeError {
+ @java.io.Serial
private static final long serialVersionUID = -8988904074992417891L;
/**
--- a/src/java.base/share/classes/java/lang/IllegalArgumentException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IllegalArgumentException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -90,5 +90,6 @@
super(cause);
}
+ @java.io.Serial
private static final long serialVersionUID = -5365630128856068164L;
}
--- a/src/java.base/share/classes/java/lang/IllegalCallerException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IllegalCallerException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 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
@@ -72,5 +72,6 @@
super(cause);
}
+ @java.io.Serial
static final long serialVersionUID = -2349421918363102232L;
}
--- a/src/java.base/share/classes/java/lang/IllegalMonitorStateException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IllegalMonitorStateException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -40,6 +40,7 @@
*/
public
class IllegalMonitorStateException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 3713306369498869069L;
/**
--- a/src/java.base/share/classes/java/lang/IllegalStateException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IllegalStateException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -93,5 +93,6 @@
super(cause);
}
+ @java.io.Serial
static final long serialVersionUID = -1848914673093119416L;
}
--- a/src/java.base/share/classes/java/lang/IllegalThreadStateException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IllegalThreadStateException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -37,6 +37,7 @@
* @since 1.0
*/
public class IllegalThreadStateException extends IllegalArgumentException {
+ @java.io.Serial
private static final long serialVersionUID = -7626246362397460174L;
/**
--- a/src/java.base/share/classes/java/lang/IncompatibleClassChangeError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IncompatibleClassChangeError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -35,6 +35,7 @@
*/
public
class IncompatibleClassChangeError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = -4914975503642802119L;
/**
--- a/src/java.base/share/classes/java/lang/IndexOutOfBoundsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/IndexOutOfBoundsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -35,6 +35,7 @@
* @since 1.0
*/
public class IndexOutOfBoundsException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 234122996006267687L;
/**
--- a/src/java.base/share/classes/java/lang/InstantiationError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/InstantiationError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -40,6 +40,7 @@
public
class InstantiationError extends IncompatibleClassChangeError {
+ @java.io.Serial
private static final long serialVersionUID = -4885810657349421204L;
/**
--- a/src/java.base/share/classes/java/lang/InstantiationException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/InstantiationException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -44,6 +44,7 @@
*/
public
class InstantiationException extends ReflectiveOperationException {
+ @java.io.Serial
private static final long serialVersionUID = -8441929162975509110L;
/**
--- a/src/java.base/share/classes/java/lang/Integer.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Integer.java Thu Aug 29 16:31:34 2019 -0700
@@ -1857,5 +1857,6 @@
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
@Native private static final long serialVersionUID = 1360826667806852920L;
}
--- a/src/java.base/share/classes/java/lang/InterruptedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/InterruptedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -48,6 +48,7 @@
*/
public
class InterruptedException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 6700697376100628473L;
/**
--- a/src/java.base/share/classes/java/lang/LayerInstantiationException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/LayerInstantiationException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 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
@@ -33,6 +33,7 @@
* @spec JPMS
*/
public class LayerInstantiationException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -906239691613568347L;
/**
--- a/src/java.base/share/classes/java/lang/LinkageError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/LinkageError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -36,6 +36,7 @@
*/
public
class LinkageError extends Error {
+ @java.io.Serial
private static final long serialVersionUID = 3579600108157160122L;
/**
--- a/src/java.base/share/classes/java/lang/Long.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Long.java Thu Aug 29 16:31:34 2019 -0700
@@ -2000,5 +2000,6 @@
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
@Native private static final long serialVersionUID = 4290774380558885855L;
}
--- a/src/java.base/share/classes/java/lang/NegativeArraySizeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NegativeArraySizeException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -33,6 +33,7 @@
*/
public
class NegativeArraySizeException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -8960118058596991861L;
/**
--- a/src/java.base/share/classes/java/lang/NoClassDefFoundError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NoClassDefFoundError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -40,6 +40,7 @@
*/
public
class NoClassDefFoundError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = 9095859863287012458L;
/**
--- a/src/java.base/share/classes/java/lang/NoSuchFieldError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NoSuchFieldError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -38,6 +38,7 @@
*/
public
class NoSuchFieldError extends IncompatibleClassChangeError {
+ @java.io.Serial
private static final long serialVersionUID = -3456430195886129035L;
/**
--- a/src/java.base/share/classes/java/lang/NoSuchFieldException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NoSuchFieldException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -32,6 +32,7 @@
* @since 1.1
*/
public class NoSuchFieldException extends ReflectiveOperationException {
+ @java.io.Serial
private static final long serialVersionUID = -6143714805279938260L;
/**
--- a/src/java.base/share/classes/java/lang/NoSuchMethodError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NoSuchMethodError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -39,6 +39,7 @@
*/
public
class NoSuchMethodError extends IncompatibleClassChangeError {
+ @java.io.Serial
private static final long serialVersionUID = -3765521442372831335L;
/**
--- a/src/java.base/share/classes/java/lang/NoSuchMethodException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NoSuchMethodException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -33,6 +33,7 @@
*/
public
class NoSuchMethodException extends ReflectiveOperationException {
+ @java.io.Serial
private static final long serialVersionUID = 5034388446362600923L;
/**
--- a/src/java.base/share/classes/java/lang/NullPointerException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NullPointerException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -51,6 +51,7 @@
*/
public
class NullPointerException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 5162710183389028792L;
/**
--- a/src/java.base/share/classes/java/lang/Number.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Number.java Thu Aug 29 16:31:34 2019 -0700
@@ -119,5 +119,6 @@
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -8742448824652078965L;
}
--- a/src/java.base/share/classes/java/lang/NumberFormatException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/NumberFormatException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -36,6 +36,7 @@
*/
public
class NumberFormatException extends IllegalArgumentException {
+ @java.io.Serial
static final long serialVersionUID = -2848938806368998894L;
/**
--- a/src/java.base/share/classes/java/lang/OutOfMemoryError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/OutOfMemoryError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -39,6 +39,7 @@
* @since 1.0
*/
public class OutOfMemoryError extends VirtualMachineError {
+ @java.io.Serial
private static final long serialVersionUID = 8228564086184010517L;
/**
--- a/src/java.base/share/classes/java/lang/ReflectiveOperationException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ReflectiveOperationException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 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
@@ -33,6 +33,7 @@
* @since 1.7
*/
public class ReflectiveOperationException extends Exception {
+ @java.io.Serial
static final long serialVersionUID = 123456789L;
/**
--- a/src/java.base/share/classes/java/lang/RuntimeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/RuntimeException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -41,6 +41,7 @@
* @since 1.0
*/
public class RuntimeException extends Exception {
+ @java.io.Serial
static final long serialVersionUID = -7034897190745766939L;
/** Constructs a new runtime exception with {@code null} as its
--- a/src/java.base/share/classes/java/lang/RuntimePermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/RuntimePermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -400,6 +400,7 @@
public final class RuntimePermission extends BasicPermission {
+ @java.io.Serial
private static final long serialVersionUID = 7399184964622342223L;
/**
--- a/src/java.base/share/classes/java/lang/SecurityException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/SecurityException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -33,6 +33,7 @@
*/
public class SecurityException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 6878364983674394167L;
/**
--- a/src/java.base/share/classes/java/lang/Short.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Short.java Thu Aug 29 16:31:34 2019 -0700
@@ -579,5 +579,6 @@
}
/** use serialVersionUID from JDK 1.1. for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 7515723908773894738L;
}
--- a/src/java.base/share/classes/java/lang/StackOverflowError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/StackOverflowError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -34,6 +34,7 @@
*/
public
class StackOverflowError extends VirtualMachineError {
+ @java.io.Serial
private static final long serialVersionUID = 8609175038441759607L;
/**
--- a/src/java.base/share/classes/java/lang/StackTraceElement.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/StackTraceElement.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2016, 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
@@ -555,5 +555,6 @@
private static native void initStackTraceElement(StackTraceElement element,
StackFrameInfo sfi);
+ @java.io.Serial
private static final long serialVersionUID = 6992337162326171013L;
}
--- a/src/java.base/share/classes/java/lang/String.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/String.java Thu Aug 29 16:31:34 2019 -0700
@@ -172,6 +172,7 @@
private boolean hashIsZero; // Default to false;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -6849794470754667710L;
/**
@@ -224,6 +225,7 @@
* <a href="{@docRoot}/../specs/serialization/protocol.html#stream-elements">
* Object Serialization Specification, Section 6.2, "Stream Elements"</a>
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields =
new ObjectStreamField[0];
@@ -1235,6 +1237,7 @@
private static class CaseInsensitiveComparator
implements Comparator<String>, java.io.Serializable {
// use serialVersionUID from JDK 1.2.2 for interoperability
+ @java.io.Serial
private static final long serialVersionUID = 8575799808933029326L;
public int compare(String s1, String s2) {
@@ -1250,6 +1253,7 @@
}
/** Replaces the de-serialized object. */
+ @java.io.Serial
private Object readResolve() { return CASE_INSENSITIVE_ORDER; }
}
--- a/src/java.base/share/classes/java/lang/StringBuffer.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/StringBuffer.java Thu Aug 29 16:31:34 2019 -0700
@@ -115,6 +115,7 @@
private transient String toStringCache;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
static final long serialVersionUID = 3388685877147921107L;
/**
@@ -723,6 +724,7 @@
* A flag indicating whether the backing array is shared.
* The value is ignored upon deserialization.
*/
+ @java.io.Serial
private static final java.io.ObjectStreamField[] serialPersistentFields =
{
new java.io.ObjectStreamField("value", char[].class),
@@ -734,6 +736,7 @@
* readObject is called to restore the state of the StringBuffer from
* a stream.
*/
+ @java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
java.io.ObjectOutputStream.PutField fields = s.putFields();
@@ -753,6 +756,7 @@
* readObject is called to restore the state of the StringBuffer from
* a stream.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
java.io.ObjectInputStream.GetField fields = s.readFields();
--- a/src/java.base/share/classes/java/lang/StringBuilder.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/StringBuilder.java Thu Aug 29 16:31:34 2019 -0700
@@ -88,6 +88,7 @@
{
/** use serialVersionUID for interoperability */
+ @java.io.Serial
static final long serialVersionUID = 4383685877147921099L;
/**
@@ -458,6 +459,7 @@
* characters currently stored in the string builder, in which
* case extra characters are ignored.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
s.defaultWriteObject();
@@ -475,6 +477,7 @@
* readObject is called to restore the state of the StringBuffer from
* a stream.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
s.defaultReadObject();
--- a/src/java.base/share/classes/java/lang/StringIndexOutOfBoundsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/StringIndexOutOfBoundsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -35,6 +35,7 @@
* @since 1.0
*/
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException {
+ @java.io.Serial
private static final long serialVersionUID = -6762910422159637258L;
/**
--- a/src/java.base/share/classes/java/lang/ThreadDeath.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/ThreadDeath.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -47,5 +47,6 @@
*/
public class ThreadDeath extends Error {
+ @java.io.Serial
private static final long serialVersionUID = -4417128565033088268L;
}
--- a/src/java.base/share/classes/java/lang/Throwable.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/Throwable.java Thu Aug 29 16:31:34 2019 -0700
@@ -114,6 +114,7 @@
*/
public class Throwable implements Serializable {
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -3042686055658047285L;
/**
@@ -901,6 +902,7 @@
* cause} field can hold; both {@code null} and {@code this} are
* valid values for the field.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException {
s.defaultReadObject(); // read in all fields
@@ -989,6 +991,7 @@
* form as a one-element array whose element is equal to {@code
* new StackTraceElement("", "", null, Integer.MIN_VALUE)}.
*/
+ @java.io.Serial
private synchronized void writeObject(ObjectOutputStream s)
throws IOException {
// Ensure that the stackTrace field is initialized to a
--- a/src/java.base/share/classes/java/lang/TypeNotPresentException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/TypeNotPresentException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2008, 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
@@ -44,6 +44,7 @@
* @since 1.5
*/
public class TypeNotPresentException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -5101214195716534496L;
private String typeName;
--- a/src/java.base/share/classes/java/lang/UnknownError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/UnknownError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -34,6 +34,7 @@
*/
public
class UnknownError extends VirtualMachineError {
+ @java.io.Serial
private static final long serialVersionUID = 2524784860676771849L;
/**
--- a/src/java.base/share/classes/java/lang/UnsatisfiedLinkError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/UnsatisfiedLinkError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -35,6 +35,7 @@
*/
public
class UnsatisfiedLinkError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = -4019343241616879428L;
/**
--- a/src/java.base/share/classes/java/lang/UnsupportedClassVersionError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/UnsupportedClassVersionError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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
@@ -34,6 +34,7 @@
*/
public
class UnsupportedClassVersionError extends ClassFormatError {
+ @java.io.Serial
private static final long serialVersionUID = -7123279212883497373L;
/**
--- a/src/java.base/share/classes/java/lang/UnsupportedOperationException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/UnsupportedOperationException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -90,5 +90,6 @@
super(cause);
}
+ @java.io.Serial
static final long serialVersionUID = -1242599979055084673L;
}
--- a/src/java.base/share/classes/java/lang/VerifyError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/VerifyError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -35,6 +35,7 @@
*/
public
class VerifyError extends LinkageError {
+ @java.io.Serial
private static final long serialVersionUID = 7001962396098498785L;
/**
--- a/src/java.base/share/classes/java/lang/VirtualMachineError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/VirtualMachineError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -34,6 +34,7 @@
* @since 1.0
*/
public abstract class VirtualMachineError extends Error {
+ @java.io.Serial
private static final long serialVersionUID = 4161983926571568670L;
/**
--- a/src/java.base/share/classes/java/lang/annotation/AnnotationFormatError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/annotation/AnnotationFormatError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -37,6 +37,7 @@
* @since 1.5
*/
public class AnnotationFormatError extends Error {
+ @java.io.Serial
private static final long serialVersionUID = -4256701562333669892L;
/**
--- a/src/java.base/share/classes/java/lang/annotation/AnnotationTypeMismatchException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/annotation/AnnotationTypeMismatchException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2016, 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
@@ -39,6 +39,7 @@
* @since 1.5
*/
public class AnnotationTypeMismatchException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 8125925355765570191L;
/**
--- a/src/java.base/share/classes/java/lang/annotation/IncompleteAnnotationException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/annotation/IncompleteAnnotationException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2013, 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
@@ -39,6 +39,7 @@
* @since 1.5
*/
public class IncompleteAnnotationException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 8445097402741811912L;
private Class<? extends Annotation> annotationType;
--- a/src/java.base/share/classes/java/lang/invoke/LambdaConversionException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/invoke/LambdaConversionException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -31,6 +31,7 @@
* @since 1.8
*/
public class LambdaConversionException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 292L + 8L;
/**
--- a/src/java.base/share/classes/java/lang/invoke/MethodType.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/invoke/MethodType.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
@@ -104,6 +104,7 @@
implements Constable,
TypeDescriptor.OfMethod<Class<?>, MethodType>,
java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 292L; // {rtype, {ptype...}}
// The rtype and ptypes fields define the structural identity of the method type:
@@ -1229,6 +1230,7 @@
/**
* There are no serializable fields for {@code MethodType}.
*/
+ @java.io.Serial
private static final java.io.ObjectStreamField[] serialPersistentFields = { };
/**
@@ -1251,6 +1253,7 @@
* @param s the stream to write the object to
* @throws java.io.IOException if there is a problem writing the object
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
s.defaultWriteObject(); // requires serialPersistentFields to be an empty array
s.writeObject(returnType());
@@ -1270,6 +1273,7 @@
* @see #readResolve
* @see #writeObject
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {
// Assign temporary defaults in case this object escapes
MethodType_init(void.class, NO_PTYPES);
@@ -1309,6 +1313,7 @@
* after serialization.
* @return the fully initialized {@code MethodType} object
*/
+ @java.io.Serial
private Object readResolve() {
// Do not use a trusted path for deserialization:
// return makeImpl(rtype, ptypes, true);
--- a/src/java.base/share/classes/java/lang/invoke/SerializedLambda.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/invoke/SerializedLambda.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -65,6 +65,7 @@
* @since 1.8
*/
public final class SerializedLambda implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 8025925345765570181L;
private final Class<?> capturingClass;
private final String functionalInterfaceClass;
@@ -225,6 +226,7 @@
return capturedArgs[i];
}
+ @java.io.Serial
private Object readResolve() throws ObjectStreamException {
try {
Method deserialize = AccessController.doPrivileged(new PrivilegedExceptionAction<>() {
--- a/src/java.base/share/classes/java/lang/invoke/StringConcatException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/invoke/StringConcatException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 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
@@ -32,6 +32,7 @@
* @since 9
*/
public class StringConcatException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 292L + 9L;
/**
--- a/src/java.base/share/classes/java/lang/invoke/WrongMethodTypeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/invoke/WrongMethodTypeException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 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
@@ -41,6 +41,7 @@
* @since 1.7
*/
public class WrongMethodTypeException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 292L;
/**
--- a/src/java.base/share/classes/java/lang/module/FindException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/module/FindException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 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
@@ -37,6 +37,7 @@
*/
public class FindException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -5817081036963388391L;
/**
--- a/src/java.base/share/classes/java/lang/module/InvalidModuleDescriptorException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/module/InvalidModuleDescriptorException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 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
@@ -34,6 +34,7 @@
* @spec JPMS
*/
public class InvalidModuleDescriptorException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 4863390386809347380L;
/**
--- a/src/java.base/share/classes/java/lang/module/ResolutionException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/module/ResolutionException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 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
@@ -34,6 +34,7 @@
* @spec JPMS
*/
public class ResolutionException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -1031186845316729450L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/GenericSignatureFormatError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/GenericSignatureFormatError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2011, 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
@@ -34,6 +34,7 @@
* @since 1.5
*/
public class GenericSignatureFormatError extends ClassFormatError {
+ @java.io.Serial
private static final long serialVersionUID = 6709919147137911034L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/InaccessibleObjectException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/InaccessibleObjectException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 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
@@ -34,6 +34,7 @@
*/
public class InaccessibleObjectException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 4158786093378140901L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/InvocationTargetException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/InvocationTargetException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -44,6 +44,7 @@
/**
* Use serialVersionUID from JDK 1.1.X for interoperability
*/
+ @java.io.Serial
private static final long serialVersionUID = 4085088731926701167L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/MalformedParameterizedTypeException.java Thu Aug 29 16:31:34 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
@@ -35,6 +35,7 @@
* @since 1.5
*/
public class MalformedParameterizedTypeException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -5696557788586220964L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/MalformedParametersException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/MalformedParametersException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -53,6 +53,7 @@
/**
* Version for serialization.
*/
+ @java.io.Serial
private static final long serialVersionUID = 20130919L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/Proxy.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/Proxy.java Thu Aug 29 16:31:34 2019 -0700
@@ -283,6 +283,7 @@
* @spec JPMS
*/
public class Proxy implements java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -2222568056686623797L;
/** parameter types of a proxy class constructor */
--- a/src/java.base/share/classes/java/lang/reflect/ReflectPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/ReflectPermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -79,6 +79,7 @@
public final
class ReflectPermission extends java.security.BasicPermission {
+ @java.io.Serial
private static final long serialVersionUID = 7412737110241507485L;
/**
--- a/src/java.base/share/classes/java/lang/reflect/UndeclaredThrowableException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/lang/reflect/UndeclaredThrowableException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2018, 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
@@ -62,6 +62,7 @@
* @since 1.3
*/
public class UndeclaredThrowableException extends RuntimeException {
+ @java.io.Serial
static final long serialVersionUID = 330127114055056639L;
/**
@@ -108,6 +109,7 @@
*
* @serialField undeclaredThrowable Throwable
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("undeclaredThrowable", Throwable.class)
};
@@ -117,6 +119,7 @@
* and initialize the cause properly when deserializing from an older
* version.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = s.readFields();
Throwable exception = (Throwable) fields.get("undeclaredThrowable", null);
@@ -129,6 +132,7 @@
* To maintain compatibility with older implementation, write a serial
* "ex" field with the cause as the value.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
ObjectOutputStream.PutField fields = out.putFields();
fields.put("undeclaredThrowable", super.getCause());
--- a/src/java.base/share/classes/java/math/BigDecimal.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/math/BigDecimal.java Thu Aug 29 16:31:34 2019 -0700
@@ -280,6 +280,7 @@
private static final int MAX_COMPACT_DIGITS = 18;
/* Appease the serialization gods */
+ @java.io.Serial
private static final long serialVersionUID = 6108874887143696463L;
private static final ThreadLocal<StringBuilderHelper>
@@ -4127,6 +4128,7 @@
*
* @param s the stream being read.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in all fields
@@ -4145,6 +4147,7 @@
*
* @param s the stream to serialize to.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Must inflate to maintain compatible serial form.
--- a/src/java.base/share/classes/java/math/BigInteger.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/math/BigInteger.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -4604,6 +4604,7 @@
}
/** use serialVersionUID from JDK 1.1. for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -8287574255936472291L;
/**
@@ -4622,6 +4623,7 @@
* @serialField lowestSetBit int
* appears in the serialized form for backward compatibility
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("signum", Integer.TYPE),
new ObjectStreamField("magnitude", byte[].class),
@@ -4643,6 +4645,7 @@
* be taken in readObject because those fields already have a 0 value by
* default since defaultReadObject is not being used.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// prepare to read the alternate persistent fields
@@ -4709,6 +4712,7 @@
* with older implementations, but will be ignored by current
* implementations.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream s) throws IOException {
// set the values of the Serializable fields
ObjectOutputStream.PutField fields = s.putFields();
--- a/src/java.base/share/classes/java/math/MathContext.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/math/MathContext.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2007, 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
@@ -64,6 +64,7 @@
private static final int MIN_DIGITS = 0;
// Serialization version
+ @java.io.Serial
private static final long serialVersionUID = 5579720004786848255L;
/* ----- Public Properties ----- */
@@ -309,6 +310,7 @@
*
* @param s the stream being read.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
s.defaultReadObject(); // read in all fields
--- a/src/java.base/share/classes/java/net/BindException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/BindException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -34,6 +34,7 @@
*/
public class BindException extends SocketException {
+ @java.io.Serial
private static final long serialVersionUID = -5945005768251722951L;
/**
--- a/src/java.base/share/classes/java/net/ConnectException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/ConnectException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -34,6 +34,7 @@
* @since 1.1
*/
public class ConnectException extends SocketException {
+ @java.io.Serial
private static final long serialVersionUID = 3831404271622369215L;
/**
--- a/src/java.base/share/classes/java/net/HttpRetryException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/HttpRetryException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -37,6 +37,7 @@
*/
public
class HttpRetryException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -9186022286469111381L;
private int responseCode;
--- a/src/java.base/share/classes/java/net/Inet4Address.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/Inet4Address.java Thu Aug 29 16:31:34 2019 -0700
@@ -89,6 +89,7 @@
/** use serialVersionUID from InetAddress, but Inet4Address instance
* is always replaced by an InetAddress instance before being
* serialized */
+ @java.io.Serial
private static final long serialVersionUID = 3286316764910316507L;
/*
@@ -134,6 +135,7 @@
* @throws ObjectStreamException if a new object replacing this
* object could not be created
*/
+ @java.io.Serial
private Object writeReplace() throws ObjectStreamException {
// will replace the to be serialized 'this' object
InetAddress inet = new InetAddress();
--- a/src/java.base/share/classes/java/net/Inet6Address.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/Inet6Address.java Thu Aug 29 16:31:34 2019 -0700
@@ -363,6 +363,7 @@
private final transient Inet6AddressHolder holder6;
+ @java.io.Serial
private static final long serialVersionUID = 6880410070516793377L;
// Perform native initialization
@@ -562,7 +563,7 @@
* @serialField scope_ifname_set boolean
* @serialField ifname String
*/
-
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("ipaddress", byte[].class),
new ObjectStreamField("scope_id", int.class),
@@ -581,6 +582,7 @@
* including the scope information, only if the
* scoped interface name is valid on this system
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException {
NetworkInterface scope_ifname = null;
@@ -644,6 +646,7 @@
* scope_ifname field as a String, rather than a NetworkInterface
* which is not serializable
*/
+ @java.io.Serial
private synchronized void writeObject(ObjectOutputStream s)
throws IOException
{
--- a/src/java.base/share/classes/java/net/InetAddress.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/InetAddress.java Thu Aug 29 16:31:34 2019 -0700
@@ -299,6 +299,7 @@
private transient String canonicalHostName = null;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 3286316764910316507L;
/*
@@ -353,6 +354,7 @@
* @throws ObjectStreamException if a new object replacing this
* object could not be created
*/
+ @java.io.Serial
private Object readResolve() throws ObjectStreamException {
// will replace the deserialized 'this' object
return new Inet4Address(holder().getHostName(), holder().getAddress());
@@ -1687,6 +1689,7 @@
return (InetAddressImpl) impl;
}
+ @java.io.Serial
private void readObjectNoData () {
if (getClass().getClassLoader() != null) {
throw new SecurityException ("invalid address type");
@@ -1698,6 +1701,7 @@
private static final long FIELDS_OFFSET
= UNSAFE.objectFieldOffset(InetAddress.class, "holder");
+ @java.io.Serial
private void readObject (ObjectInputStream s) throws
IOException, ClassNotFoundException {
if (getClass().getClassLoader() != null) {
@@ -1721,12 +1725,14 @@
* @serialField address int
* @serialField family int
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("hostName", String.class),
new ObjectStreamField("address", int.class),
new ObjectStreamField("family", int.class),
};
+ @java.io.Serial
private void writeObject (ObjectOutputStream s) throws
IOException {
if (getClass().getClassLoader() != null) {
--- a/src/java.base/share/classes/java/net/InetSocketAddress.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/InetSocketAddress.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2018, 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
@@ -136,6 +136,7 @@
private final transient InetSocketAddressHolder holder;
+ @java.io.Serial
private static final long serialVersionUID = 5076001401234631237L;
private static int checkPort(int port) {
@@ -259,11 +260,13 @@
* @serialField addr InetAddress
* @serialField port int
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("hostname", String.class),
new ObjectStreamField("addr", InetAddress.class),
new ObjectStreamField("port", int.class)};
+ @java.io.Serial
private void writeObject(ObjectOutputStream out)
throws IOException
{
@@ -275,6 +278,7 @@
out.writeFields();
}
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
@@ -296,6 +300,7 @@
UNSAFE.putReference(this, FIELDS_OFFSET, h);
}
+ @java.io.Serial
private void readObjectNoData()
throws ObjectStreamException
{
--- a/src/java.base/share/classes/java/net/MalformedURLException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/MalformedURLException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -36,6 +36,7 @@
* @since 1.0
*/
public class MalformedURLException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -182787522200415866L;
/**
--- a/src/java.base/share/classes/java/net/NetPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/NetPermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -175,6 +175,7 @@
*/
public final class NetPermission extends BasicPermission {
+ @java.io.Serial
private static final long serialVersionUID = -8343910153355041693L;
/**
--- a/src/java.base/share/classes/java/net/NoRouteToHostException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/NoRouteToHostException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -34,6 +34,7 @@
* @since 1.1
*/
public class NoRouteToHostException extends SocketException {
+ @java.io.Serial
private static final long serialVersionUID = -1897550894873493790L;
/**
--- a/src/java.base/share/classes/java/net/PortUnreachableException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/PortUnreachableException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -33,6 +33,7 @@
*/
public class PortUnreachableException extends SocketException {
+ @java.io.Serial
private static final long serialVersionUID = 8462541992376507323L;
/**
--- a/src/java.base/share/classes/java/net/ProtocolException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/ProtocolException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -36,6 +36,7 @@
*/
public
class ProtocolException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -6098449442062388080L;
/**
--- a/src/java.base/share/classes/java/net/SocketAddress.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/SocketAddress.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2013, 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
@@ -40,6 +40,7 @@
*/
public abstract class SocketAddress implements java.io.Serializable {
+ @java.io.Serial
static final long serialVersionUID = 5215720748342549866L;
}
--- a/src/java.base/share/classes/java/net/SocketException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/SocketException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -35,6 +35,7 @@
*/
public
class SocketException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -5935874303556886934L;
/**
--- a/src/java.base/share/classes/java/net/SocketPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/SocketPermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -150,6 +150,7 @@
public final class SocketPermission extends Permission
implements java.io.Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = -7204263841984476862L;
/**
@@ -1186,6 +1187,7 @@
* to a stream. The actions are serialized, and the superclass
* takes care of the name.
*/
+ @java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
throws IOException
{
@@ -1200,6 +1202,7 @@
* readObject is called to restore the state of the SocketPermission from
* a stream.
*/
+ @java.io.Serial
private synchronized void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException
{
@@ -1448,6 +1451,7 @@
return (Enumeration)Collections.enumeration(perms.values());
}
+ @java.io.Serial
private static final long serialVersionUID = 2787186408602843674L;
// Need to maintain serialization interoperability with earlier releases,
@@ -1463,6 +1467,7 @@
* @serialField permissions java.util.Vector
* A list of the SocketPermissions for this set.
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("permissions", Vector.class),
};
@@ -1474,6 +1479,7 @@
* Writes the contents of the perms field out as a Vector for
* serialization compatibility with earlier releases.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
// Don't call out.defaultWriteObject()
@@ -1488,6 +1494,7 @@
/*
* Reads in a Vector of SocketPermissions and saves them in the perms field.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/net/SocketTimeoutException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/SocketTimeoutException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2008, 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
@@ -32,6 +32,7 @@
*/
public class SocketTimeoutException extends java.io.InterruptedIOException {
+ @java.io.Serial
private static final long serialVersionUID = -8846654841826352300L;
/**
--- a/src/java.base/share/classes/java/net/URI.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/URI.java Thu Aug 29 16:31:34 2019 -0700
@@ -503,7 +503,7 @@
// Note: Comments containing the word "ASSERT" indicate places where a
// throw of an InternalError should be replaced by an appropriate assertion
// statement once asserts are enabled in the build.
-
+ @java.io.Serial
static final long serialVersionUID = -6052424284110960213L;
@@ -1777,6 +1777,7 @@
* @param os The object-output stream to which this object
* is to be written
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream os)
throws IOException
{
@@ -1794,6 +1795,7 @@
* @param is The object-input stream from which this object
* is being read
*/
+ @java.io.Serial
private void readObject(ObjectInputStream is)
throws ClassNotFoundException, IOException
{
--- a/src/java.base/share/classes/java/net/URISyntaxException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/URISyntaxException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2013, 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
@@ -38,6 +38,7 @@
public class URISyntaxException
extends Exception
{
+ @java.io.Serial
private static final long serialVersionUID = 2137979680897488891L;
private String input;
--- a/src/java.base/share/classes/java/net/URL.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/URL.java Thu Aug 29 16:31:34 2019 -0700
@@ -175,6 +175,7 @@
public final class URL implements java.io.Serializable {
static final String BUILTIN_HANDLERS_PREFIX = "sun.net.www.protocol";
+ @java.io.Serial
static final long serialVersionUID = -7627629688361524110L;
/**
@@ -1489,6 +1490,7 @@
* @serialField hashCode int
*
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("protocol", String.class),
new ObjectStreamField("host", String.class),
@@ -1508,6 +1510,7 @@
* the protocol variable returns a valid URLStreamHandler and
* throw an IOException if it does not.
*/
+ @java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
throws IOException
{
@@ -1519,6 +1522,7 @@
* stream. It reads the components of the URL and finds the local
* stream handler.
*/
+ @java.io.Serial
private synchronized void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException {
GetField gf = s.readFields();
@@ -1550,7 +1554,7 @@
* @throws ObjectStreamException if a new object replacing this
* object could not be created
*/
-
+ @java.io.Serial
private Object readResolve() throws ObjectStreamException {
URLStreamHandler handler = null;
--- a/src/java.base/share/classes/java/net/URLPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/URLPermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -151,6 +151,7 @@
*/
public final class URLPermission extends Permission {
+ @java.io.Serial
private static final long serialVersionUID = -2702463814894478682L;
private transient String scheme;
@@ -505,6 +506,7 @@
/**
* restore the state of this object from stream
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = s.readFields();
--- a/src/java.base/share/classes/java/net/UnknownHostException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/UnknownHostException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -35,6 +35,7 @@
*/
public
class UnknownHostException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -4639126076052875403L;
/**
--- a/src/java.base/share/classes/java/net/UnknownServiceException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/net/UnknownServiceException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -37,6 +37,7 @@
* @since 1.0
*/
public class UnknownServiceException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -4169033248853639508L;
/**
--- a/src/java.base/share/classes/java/nio/charset/CoderMalfunctionError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/charset/CoderMalfunctionError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -39,6 +39,7 @@
extends Error
{
+ @java.io.Serial
private static final long serialVersionUID = -1151412348057794301L;
/**
--- a/src/java.base/share/classes/java/nio/charset/MalformedInputException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/charset/MalformedInputException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2013, 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
@@ -38,6 +38,7 @@
extends CharacterCodingException
{
+ @java.io.Serial
private static final long serialVersionUID = -3438823399834806194L;
private int inputLength;
--- a/src/java.base/share/classes/java/nio/charset/UnmappableCharacterException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/charset/UnmappableCharacterException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -38,6 +38,7 @@
extends CharacterCodingException
{
+ @java.io.Serial
private static final long serialVersionUID = -7026962371537706123L;
private int inputLength;
--- a/src/java.base/share/classes/java/nio/file/AccessDeniedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/AccessDeniedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -40,6 +40,7 @@
public class AccessDeniedException
extends FileSystemException
{
+ @java.io.Serial
private static final long serialVersionUID = 4943049599949219617L;
/**
--- a/src/java.base/share/classes/java/nio/file/AtomicMoveNotSupportedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/AtomicMoveNotSupportedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class AtomicMoveNotSupportedException
extends FileSystemException
{
+ @java.io.Serial
static final long serialVersionUID = 5402760225333135579L;
/**
--- a/src/java.base/share/classes/java/nio/file/ClosedDirectoryStreamException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/ClosedDirectoryStreamException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class ClosedDirectoryStreamException
extends IllegalStateException
{
+ @java.io.Serial
static final long serialVersionUID = 4228386650900895400L;
/**
--- a/src/java.base/share/classes/java/nio/file/ClosedFileSystemException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/ClosedFileSystemException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class ClosedFileSystemException
extends IllegalStateException
{
+ @java.io.Serial
static final long serialVersionUID = -8158336077256193488L;
/**
--- a/src/java.base/share/classes/java/nio/file/ClosedWatchServiceException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/ClosedWatchServiceException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class ClosedWatchServiceException
extends IllegalStateException
{
+ @java.io.Serial
static final long serialVersionUID = 1853336266231677732L;
/**
--- a/src/java.base/share/classes/java/nio/file/DirectoryIteratorException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/DirectoryIteratorException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -43,6 +43,7 @@
public final class DirectoryIteratorException
extends ConcurrentModificationException
{
+ @java.io.Serial
private static final long serialVersionUID = -6012699886086212874L;
/**
@@ -76,6 +77,7 @@
* if the object is invalid or has a cause that is not
* an {@code IOException}
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/nio/file/DirectoryNotEmptyException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/DirectoryNotEmptyException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class DirectoryNotEmptyException
extends FileSystemException
{
+ @java.io.Serial
static final long serialVersionUID = 3056667871802779003L;
/**
--- a/src/java.base/share/classes/java/nio/file/FileAlreadyExistsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/FileAlreadyExistsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class FileAlreadyExistsException
extends FileSystemException
{
+ @java.io.Serial
static final long serialVersionUID = 7579540934498831181L;
/**
--- a/src/java.base/share/classes/java/nio/file/FileSystemAlreadyExistsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/FileSystemAlreadyExistsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class FileSystemAlreadyExistsException
extends RuntimeException
{
+ @java.io.Serial
static final long serialVersionUID = -5438419127181131148L;
/**
--- a/src/java.base/share/classes/java/nio/file/FileSystemException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/FileSystemException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -37,6 +37,7 @@
public class FileSystemException
extends IOException
{
+ @java.io.Serial
static final long serialVersionUID = -3055425747967319812L;
private final String file;
--- a/src/java.base/share/classes/java/nio/file/FileSystemLoopException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/FileSystemLoopException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -35,6 +35,7 @@
public class FileSystemLoopException
extends FileSystemException
{
+ @java.io.Serial
private static final long serialVersionUID = 4843039591949217617L;
/**
--- a/src/java.base/share/classes/java/nio/file/FileSystemNotFoundException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/FileSystemNotFoundException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -34,6 +34,7 @@
public class FileSystemNotFoundException
extends RuntimeException
{
+ @java.io.Serial
static final long serialVersionUID = 7999581764446402397L;
/**
--- a/src/java.base/share/classes/java/nio/file/InvalidPathException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/InvalidPathException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -36,6 +36,7 @@
public class InvalidPathException
extends IllegalArgumentException
{
+ @java.io.Serial
static final long serialVersionUID = 4355821422286746137L;
private String input;
--- a/src/java.base/share/classes/java/nio/file/LinkPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/LinkPermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -67,6 +67,7 @@
* @see Files#createSymbolicLink
*/
public final class LinkPermission extends BasicPermission {
+ @java.io.Serial
static final long serialVersionUID = -1441492453772213220L;
private void checkName(String name) {
--- a/src/java.base/share/classes/java/nio/file/NoSuchFileException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/NoSuchFileException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class NoSuchFileException
extends FileSystemException
{
+ @java.io.Serial
static final long serialVersionUID = -1390291775875351931L;
/**
--- a/src/java.base/share/classes/java/nio/file/NotDirectoryException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/NotDirectoryException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class NotDirectoryException
extends FileSystemException
{
+ @java.io.Serial
private static final long serialVersionUID = -9011457427178200199L;
/**
--- a/src/java.base/share/classes/java/nio/file/NotLinkException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/NotLinkException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class NotLinkException
extends FileSystemException
{
+ @java.io.Serial
static final long serialVersionUID = -388655596416518021L;
/**
--- a/src/java.base/share/classes/java/nio/file/ProviderMismatchException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/ProviderMismatchException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class ProviderMismatchException
extends java.lang.IllegalArgumentException
{
+ @java.io.Serial
static final long serialVersionUID = 4990847485741612530L;
/**
--- a/src/java.base/share/classes/java/nio/file/ProviderNotFoundException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/ProviderNotFoundException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -34,6 +34,7 @@
public class ProviderNotFoundException
extends RuntimeException
{
+ @java.io.Serial
static final long serialVersionUID = -1880012509822920354L;
/**
--- a/src/java.base/share/classes/java/nio/file/ReadOnlyFileSystemException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/ReadOnlyFileSystemException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -35,6 +35,7 @@
public class ReadOnlyFileSystemException
extends UnsupportedOperationException
{
+ @java.io.Serial
static final long serialVersionUID = -6822409595617487197L;
/**
--- a/src/java.base/share/classes/java/nio/file/attribute/UserPrincipalNotFoundException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/nio/file/attribute/UserPrincipalNotFoundException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 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
@@ -37,6 +37,7 @@
public class UserPrincipalNotFoundException
extends IOException
{
+ @java.io.Serial
static final long serialVersionUID = -5369283889045833024L;
private final String name;
--- a/src/java.base/share/classes/java/text/AttributedCharacterIterator.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/AttributedCharacterIterator.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -153,6 +153,7 @@
* @throws InvalidObjectException if the object to resolve is not
* an instance of {@code Attribute}
*/
+ @java.io.Serial
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != Attribute.class) {
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
@@ -194,6 +195,7 @@
public static final Attribute INPUT_METHOD_SEGMENT = new Attribute("input_method_segment");
// make sure the serial version doesn't change between compiler versions
+ @java.io.Serial
private static final long serialVersionUID = -9142742483513960612L;
};
--- a/src/java.base/share/classes/java/text/ChoiceFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/ChoiceFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -168,6 +168,7 @@
public class ChoiceFormat extends NumberFormat {
// Proclaim serial compatibility with 1.1 FCS
+ @java.io.Serial
private static final long serialVersionUID = 1795184449645032964L;
/**
@@ -528,6 +529,7 @@
* to maintain class invariants.
* @throws InvalidObjectException if the objects read from the stream is invalid.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
if (choiceLimits.length != choiceFormats.length) {
--- a/src/java.base/share/classes/java/text/CompactNumberFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/CompactNumberFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -184,6 +184,7 @@
*/
public final class CompactNumberFormat extends NumberFormat {
+ @java.io.Serial
private static final long serialVersionUID = 7128367218649234678L;
/**
@@ -1784,6 +1785,7 @@
* @throws ClassNotFoundException if the class of a serialized object
* could not be found
*/
+ @java.io.Serial
private void readObject(ObjectInputStream inStream) throws IOException,
ClassNotFoundException {
--- a/src/java.base/share/classes/java/text/DateFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/DateFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -298,6 +298,7 @@
public static final int TIMEZONE_FIELD = 17;
// Proclaim serial compatibility with 1.1 FCS
+ @java.io.Serial
private static final long serialVersionUID = 7218322306649953788L;
/**
@@ -866,6 +867,7 @@
public static class Field extends Format.Field {
// Proclaim serial compatibility with 1.4 FCS
+ @java.io.Serial
private static final long serialVersionUID = 7441350119349544720L;
// table of all instances in this class, used by readResolve
@@ -943,6 +945,7 @@
* @return resolved DateFormat.Field constant
*/
@Override
+ @java.io.Serial
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != DateFormat.Field.class) {
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
--- a/src/java.base/share/classes/java/text/DateFormatSymbols.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/DateFormatSymbols.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -290,6 +290,7 @@
Locale locale = null;
/* use serialVersionUID from JDK 1.1.4 for interoperability */
+ @java.io.Serial
static final long serialVersionUID = -5987973545549424702L;
/**
@@ -892,6 +893,7 @@
*
* @since 1.6
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream stream) throws IOException {
if (zoneStrings == null) {
zoneStrings = TimeZoneNameUtility.getZoneStrings(locale);
--- a/src/java.base/share/classes/java/text/DecimalFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/DecimalFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -3870,6 +3870,7 @@
* literal values. This is exactly what we want, since that corresponds to
* the pre-version-2 behavior.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
@@ -4343,5 +4344,6 @@
static final int MAXIMUM_FRACTION_DIGITS = Integer.MAX_VALUE;
// Proclaim JDK 1.1 serial compatibility.
+ @java.io.Serial
static final long serialVersionUID = 864413376551465018L;
}
--- a/src/java.base/share/classes/java/text/DecimalFormatSymbols.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/DecimalFormatSymbols.java Thu Aug 29 16:31:34 2019 -0700
@@ -852,6 +852,7 @@
* representations of either percent, per mille, and/or minus sign disagree.
* @since 1.1.6
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
@@ -1067,6 +1068,7 @@
private transient volatile boolean currencyInitialized;
// Proclaim JDK 1.1 FCS compatibility
+ @java.io.Serial
static final long serialVersionUID = 5772796243397350300L;
// The internal serial version which says which version was written
--- a/src/java.base/share/classes/java/text/Format.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/Format.java Thu Aug 29 16:31:34 2019 -0700
@@ -133,6 +133,7 @@
*/
public abstract class Format implements Serializable, Cloneable {
+ @java.io.Serial
private static final long serialVersionUID = -299282585814624189L;
/**
@@ -349,6 +350,7 @@
public static class Field extends AttributedCharacterIterator.Attribute {
// Proclaim serial compatibility with 1.4 FCS
+ @java.io.Serial
private static final long serialVersionUID = 276966692217360283L;
/**
--- a/src/java.base/share/classes/java/text/MessageFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/MessageFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -349,6 +349,7 @@
public class MessageFormat extends Format {
+ @java.io.Serial
private static final long serialVersionUID = 6479157306784022952L;
/**
@@ -1153,6 +1154,7 @@
public static class Field extends Format.Field {
// Proclaim serial compatibility with 1.4 FCS
+ @java.io.Serial
private static final long serialVersionUID = 7899943957617360810L;
/**
@@ -1171,6 +1173,7 @@
* resolved.
* @return resolved MessageFormat.Field constant
*/
+ @java.io.Serial
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != MessageFormat.Field.class) {
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
@@ -1601,6 +1604,7 @@
* to maintain class invariants.
* @throws InvalidObjectException if the objects read from the stream is invalid.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
boolean isValid = maxOffset >= -1
--- a/src/java.base/share/classes/java/text/NumberFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/NumberFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -1013,6 +1013,7 @@
*
* @since 1.2
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
@@ -1041,6 +1042,7 @@
*
* @since 1.2
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream stream)
throws IOException
{
@@ -1225,6 +1227,7 @@
// Removed "implements Cloneable" clause. Needs to update serialization
// ID for backward compatibility.
+ @java.io.Serial
static final long serialVersionUID = -2308460125733713944L;
@@ -1242,6 +1245,7 @@
public static class Field extends Format.Field {
// Proclaim serial compatibility with 1.4 FCS
+ @java.io.Serial
private static final long serialVersionUID = 7494728892700160890L;
// table of all instances in this class, used by readResolve
@@ -1267,6 +1271,7 @@
* @return resolved NumberFormat.Field constant
*/
@Override
+ @java.io.Serial
protected Object readResolve() throws InvalidObjectException {
if (this.getClass() != NumberFormat.Field.class) {
throw new InvalidObjectException("subclass didn't correctly implement readResolve");
--- a/src/java.base/share/classes/java/text/ParseException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/ParseException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -50,6 +50,7 @@
public
class ParseException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 2703218443322787634L;
/**
--- a/src/java.base/share/classes/java/text/SimpleDateFormat.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/text/SimpleDateFormat.java Thu Aug 29 16:31:34 2019 -0700
@@ -441,6 +441,7 @@
// the official serial version ID which says cryptically
// which version we're compatible with
+ @java.io.Serial
static final long serialVersionUID = 4774881970558875024L;
// the internal serial version which says which version was written
@@ -2471,6 +2472,7 @@
*
* @exception InvalidObjectException if the pattern is invalid
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
--- a/src/java.base/share/classes/java/time/Clock.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/Clock.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -479,6 +479,7 @@
* {@link System#currentTimeMillis()}.
*/
static final class SystemClock extends Clock implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 6740630888130243051L;
private static final long OFFSET_SEED =
System.currentTimeMillis()/1000 - 1024; // initial offest
@@ -572,6 +573,7 @@
public String toString() {
return "SystemClock[" + zone + "]";
}
+ @java.io.Serial
private void readObject(ObjectInputStream is)
throws IOException, ClassNotFoundException {
// ensure that offset is initialized
@@ -586,6 +588,7 @@
* This is typically used for testing.
*/
static final class FixedClock extends Clock implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 7430389292664866958L;
private final Instant instant;
private final ZoneId zone;
@@ -636,6 +639,7 @@
* Implementation of a clock that adds an offset to an underlying clock.
*/
static final class OffsetClock extends Clock implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 2007484719125426256L;
private final Clock baseClock;
private final Duration offset;
@@ -686,6 +690,7 @@
* Implementation of a clock that adds an offset to an underlying clock.
*/
static final class TickClock extends Clock implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 6504659149906368850L;
private final Clock baseClock;
private final long tickNanos;
--- a/src/java.base/share/classes/java/time/DateTimeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/DateTimeException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -77,6 +77,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -1632418723876261839L;
/**
--- a/src/java.base/share/classes/java/time/Duration.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/Duration.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -140,6 +140,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 3078945930695997490L;
/**
* Constant for nanos per second.
@@ -1529,6 +1530,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.DURATION_TYPE, this);
}
@@ -1539,6 +1541,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/Instant.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/Instant.java Thu Aug 29 16:31:34 2019 -0700
@@ -245,6 +245,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -665713676816604388L;
/**
@@ -1342,6 +1343,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.INSTANT_TYPE, this);
}
@@ -1352,6 +1354,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/LocalDate.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/LocalDate.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -157,6 +157,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 2942565459149668126L;
/**
* The number of days in a 400 year cycle.
@@ -2200,6 +2201,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.LOCAL_DATE_TYPE, this);
}
@@ -2210,6 +2212,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/LocalDateTime.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/LocalDateTime.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -153,6 +153,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 6207766400415563566L;
/**
@@ -1985,6 +1986,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.LOCAL_DATE_TIME_TYPE, this);
}
@@ -1995,6 +1997,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/LocalTime.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/LocalTime.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -213,6 +213,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 6414437269572265201L;
/**
@@ -1674,6 +1675,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.LOCAL_TIME_TYPE, this);
}
@@ -1684,6 +1686,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/MonthDay.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/MonthDay.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -130,6 +130,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -939150713474957432L;
/**
* Parser.
@@ -764,6 +765,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.MONTH_DAY_TYPE, this);
}
@@ -774,6 +776,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/OffsetDateTime.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/OffsetDateTime.java Thu Aug 29 16:31:34 2019 -0700
@@ -184,6 +184,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 2287754244819255394L;
/**
@@ -1931,6 +1932,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.OFFSET_DATE_TIME_TYPE, this);
}
@@ -1941,6 +1943,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/OffsetTime.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/OffsetTime.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -138,6 +138,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 7264499704384272492L;
/**
@@ -1410,6 +1411,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.OFFSET_TIME_TYPE, this);
}
@@ -1420,6 +1422,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/Period.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/Period.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -140,6 +140,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -3587258372562876L;
/**
* The pattern for parsing.
@@ -1052,6 +1053,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.PERIOD_TYPE, this);
}
@@ -1062,6 +1064,7 @@
* @param s the stream to read
* @throws java.io.InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/Ser.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/Ser.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -91,6 +91,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -7683839454370182990L;
static final byte DURATION_TYPE = 1;
@@ -277,6 +278,7 @@
*
* @return the read object, should never be null
*/
+ @java.io.Serial
private Object readResolve() {
return object;
}
--- a/src/java.base/share/classes/java/time/Year.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/Year.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -147,6 +147,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -23038383694477807L;
/**
* Parser.
@@ -1097,6 +1098,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.YEAR_TYPE, this);
}
@@ -1107,6 +1109,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/YearMonth.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/YearMonth.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -134,6 +134,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 4183400860270640070L;
/**
* Parser.
@@ -1222,6 +1223,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.YEAR_MONTH_TYPE, this);
}
@@ -1232,6 +1234,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/ZoneId.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/ZoneId.java Thu Aug 29 16:31:34 2019 -0700
@@ -254,6 +254,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 8352817235686L;
//-----------------------------------------------------------------------
@@ -624,6 +625,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
@@ -655,6 +657,7 @@
* @return the instance of {@code Ser}, not null
*/
// this is here for serialization Javadoc
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.ZONE_REGION_TYPE, this);
}
--- a/src/java.base/share/classes/java/time/ZoneOffset.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/ZoneOffset.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -143,6 +143,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 2357656521762053153L;
/**
@@ -763,6 +764,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.ZONE_OFFSET_TYPE, this);
}
@@ -773,6 +775,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/ZoneRegion.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/ZoneRegion.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -92,6 +92,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 8386373296231747096L;
/**
* The time-zone ID, not null.
@@ -189,6 +190,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.ZONE_REGION_TYPE, this);
}
@@ -199,6 +201,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/ZonedDateTime.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/ZonedDateTime.java Thu Aug 29 16:31:34 2019 -0700
@@ -167,6 +167,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -6260982410461394882L;
/**
@@ -2241,6 +2242,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.ZONE_DATE_TIME_TYPE, this);
}
@@ -2251,6 +2253,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/AbstractChronology.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/AbstractChronology.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -729,6 +729,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
Object writeReplace() {
return new Ser(Ser.CHRONO_TYPE, this);
}
@@ -739,6 +740,7 @@
* @param s the stream to read
* @throws java.io.InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws ObjectStreamException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/ChronoLocalDateImpl.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/ChronoLocalDateImpl.java Thu Aug 29 16:31:34 2019 -0700
@@ -146,6 +146,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 6282433883239719096L;
/**
--- a/src/java.base/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/ChronoLocalDateTimeImpl.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -103,6 +103,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 4556003607393004514L;
/**
* Hours per day.
@@ -409,6 +410,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.CHRONO_LOCAL_DATE_TIME_TYPE, this);
}
@@ -419,6 +421,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/ChronoPeriodImpl.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/ChronoPeriodImpl.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -98,6 +98,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 57387258289L;
/**
@@ -366,6 +367,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
protected Object writeReplace() {
return new Ser(Ser.CHRONO_PERIOD_TYPE, this);
}
@@ -376,6 +378,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws ObjectStreamException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/ChronoZonedDateTimeImpl.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/ChronoZonedDateTimeImpl.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -107,6 +107,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -5261813987200935591L;
/**
@@ -333,6 +334,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.CHRONO_ZONE_DATE_TIME_TYPE, this);
}
@@ -343,6 +345,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/HijrahChronology.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/HijrahChronology.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -205,6 +205,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 3127340209035924785L;
/**
* Singleton instance of the Islamic Umm Al-Qura calendar of Saudi Arabia.
@@ -1021,6 +1022,7 @@
* @return the instance of {@code Ser}, not null
*/
@Override
+ @java.io.Serial
Object writeReplace() {
return super.writeReplace();
}
@@ -1031,6 +1033,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/HijrahDate.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/HijrahDate.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -123,6 +123,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -5207853542612002020L;
/**
* The Chronology of this HijrahDate.
@@ -657,6 +658,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
@@ -675,6 +677,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.HIJRAH_DATE_TYPE, this);
}
--- a/src/java.base/share/classes/java/time/chrono/IsoChronology.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/IsoChronology.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -133,6 +133,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -1440403870442975015L;
private static final long DAYS_0000_TO_1970 = (146097 * 5L) - (30L * 365L + 7L); // taken from LocalDate
@@ -689,6 +690,7 @@
* @return the instance of {@code Ser}, not null
*/
@Override
+ @java.io.Serial
Object writeReplace() {
return super.writeReplace();
}
@@ -699,6 +701,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/JapaneseChronology.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/JapaneseChronology.java Thu Aug 29 16:31:34 2019 -0700
@@ -135,6 +135,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 459996390165777884L;
//-----------------------------------------------------------------------
@@ -516,6 +517,7 @@
* @return the instance of {@code Ser}, not null
*/
@Override
+ @java.io.Serial
Object writeReplace() {
return super.writeReplace();
}
@@ -526,6 +528,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/JapaneseDate.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/JapaneseDate.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -130,6 +130,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -305327627230580483L;
/**
@@ -719,6 +720,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
@@ -736,6 +738,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.JAPANESE_DATE_TYPE, this);
}
--- a/src/java.base/share/classes/java/time/chrono/JapaneseEra.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/JapaneseEra.java Thu Aug 29 16:31:34 2019 -0700
@@ -166,6 +166,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 1466499369062886794L;
// array for the singleton JapaneseEra instances
@@ -426,6 +427,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
@@ -442,6 +444,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.JAPANESE_ERA_TYPE, this);
}
--- a/src/java.base/share/classes/java/time/chrono/MinguoChronology.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/MinguoChronology.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -114,6 +114,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 1039765215346859963L;
/**
* The difference in years between ISO and Minguo.
@@ -347,6 +348,7 @@
* @return the instance of {@code Ser}, not null
*/
@Override
+ @java.io.Serial
Object writeReplace() {
return super.writeReplace();
}
@@ -357,6 +359,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/MinguoDate.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/MinguoDate.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -110,6 +110,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 1300372329181994526L;
/**
@@ -481,6 +482,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
@@ -498,6 +500,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.MINGUO_DATE_TYPE, this);
}
--- a/src/java.base/share/classes/java/time/chrono/Ser.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/Ser.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -94,6 +94,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -6103370247208168577L;
static final byte CHRONO_TYPE = 1;
@@ -249,6 +250,7 @@
*
* @return the read object, should never be null
*/
+ @java.io.Serial
private Object readResolve() {
return object;
}
--- a/src/java.base/share/classes/java/time/chrono/ThaiBuddhistChronology.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/ThaiBuddhistChronology.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -116,6 +116,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 2775954514031616474L;
/**
* Containing the offset to add to the ISO year.
@@ -384,6 +385,7 @@
* @return the instance of {@code Ser}, not null
*/
@Override
+ @java.io.Serial
Object writeReplace() {
return super.writeReplace();
}
@@ -394,6 +396,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
--- a/src/java.base/share/classes/java/time/chrono/ThaiBuddhistDate.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/chrono/ThaiBuddhistDate.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -110,6 +110,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -8722293800195731463L;
/**
@@ -481,6 +482,7 @@
* @param s the stream to read
* @throws InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s) throws InvalidObjectException {
throw new InvalidObjectException("Deserialization via serialization delegate");
}
@@ -498,6 +500,7 @@
*
* @return the instance of {@code Ser}, not null
*/
+ @java.io.Serial
private Object writeReplace() {
return new Ser(Ser.THAIBUDDHIST_DATE_TYPE, this);
}
--- a/src/java.base/share/classes/java/time/format/DateTimeParseException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/format/DateTimeParseException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -78,6 +78,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = 4304633501674722597L;
/**
--- a/src/java.base/share/classes/java/time/temporal/UnsupportedTemporalTypeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/temporal/UnsupportedTemporalTypeException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -77,6 +77,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -6158898438688206006L;
/**
--- a/src/java.base/share/classes/java/time/temporal/ValueRange.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/temporal/ValueRange.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -92,6 +92,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -7317881728594519368L;
/**
@@ -352,6 +353,7 @@
* or the largest minimum is greater than the largest maximum
* @throws ClassNotFoundException if a class cannot be resolved
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException, InvalidObjectException
{
--- a/src/java.base/share/classes/java/time/temporal/WeekFields.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/time/temporal/WeekFields.java Thu Aug 29 16:31:34 2019 -0700
@@ -242,6 +242,7 @@
/**
* Serialization version.
*/
+ @java.io.Serial
private static final long serialVersionUID = -1177360819670808121L;
/**
@@ -362,6 +363,7 @@
* value for firstDayOfWeek or minimalDays.
* @throws ClassNotFoundException if a class cannot be resolved
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException, InvalidObjectException
{
@@ -382,6 +384,7 @@
* @throws InvalidObjectException if the serialized object has invalid
* values for firstDayOfWeek or minimalDays.
*/
+ @java.io.Serial
private Object readResolve() throws InvalidObjectException {
try {
return WeekFields.of(firstDayOfWeek, minimalDays);
--- a/src/java.base/share/classes/java/util/AbstractMap.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/AbstractMap.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -604,6 +604,7 @@
public static class SimpleEntry<K,V>
implements Entry<K,V>, java.io.Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = -8499721149061103585L;
private final K key;
@@ -734,6 +735,7 @@
public static class SimpleImmutableEntry<K,V>
implements Entry<K,V>, java.io.Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 7138329143949025153L;
private final K key;
--- a/src/java.base/share/classes/java/util/ArrayDeque.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ArrayDeque.java Thu Aug 29 16:31:34 2019 -0700
@@ -1157,6 +1157,7 @@
}
}
+ @java.io.Serial
private static final long serialVersionUID = 2340985798034038923L;
/**
@@ -1168,6 +1169,7 @@
* followed by all of its elements (each an object reference) in
* first-to-last order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
s.defaultWriteObject();
@@ -1192,6 +1194,7 @@
* could not be found
* @throws java.io.IOException if an I/O error occurs
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
s.defaultReadObject();
--- a/src/java.base/share/classes/java/util/ArrayList.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ArrayList.java Thu Aug 29 16:31:34 2019 -0700
@@ -109,6 +109,7 @@
public class ArrayList<E> extends AbstractList<E>
implements List<E>, RandomAccess, Cloneable, java.io.Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 8683452581122892189L;
/**
@@ -849,6 +850,7 @@
* instance is emitted (int), followed by all of its elements
* (each an {@code Object}) in the proper order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out element count, and any hidden stuff
@@ -876,6 +878,7 @@
* could not be found
* @throws java.io.IOException if an I/O error occurs
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
--- a/src/java.base/share/classes/java/util/ArrayPrefixHelpers.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ArrayPrefixHelpers.java Thu Aug 29 16:31:34 2019 -0700
@@ -251,6 +251,7 @@
}
}
}
+ @java.io.Serial
private static final long serialVersionUID = 5293554502939613543L;
}
@@ -401,6 +402,7 @@
}
}
}
+ @java.io.Serial
private static final long serialVersionUID = -5074099945909284273L;
}
@@ -551,6 +553,7 @@
}
}
}
+ @java.io.Serial
private static final long serialVersionUID = -586947823794232033L;
}
@@ -701,6 +704,7 @@
}
}
}
+ @java.io.Serial
private static final long serialVersionUID = 3731755594596840961L;
}
}
--- a/src/java.base/share/classes/java/util/Arrays.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Arrays.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -4337,6 +4337,7 @@
private static class ArrayList<E> extends AbstractList<E>
implements RandomAccess, java.io.Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = -2764017481108945198L;
private final E[] a;
--- a/src/java.base/share/classes/java/util/ArraysParallelSortHelpers.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ArraysParallelSortHelpers.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -87,6 +87,7 @@
* quartile task, that does not need to maintain array state.
*/
static final class EmptyCompleter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
EmptyCompleter(CountedCompleter<?> p) { super(p); }
public final void compute() { }
@@ -96,6 +97,7 @@
* A trigger for secondary merge of two merges
*/
static final class Relay extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final CountedCompleter<?> task;
Relay(CountedCompleter<?> task) {
@@ -111,6 +113,7 @@
/** Object + Comparator support class */
static final class FJObject {
static final class Sorter<T> extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final T[] a, w;
final int base, size, wbase, gran;
@@ -148,6 +151,7 @@
}
static final class Merger<T> extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final T[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -233,6 +237,7 @@
/** byte support class */
static final class FJByte {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final byte[] a, w;
final int base, size, wbase, gran;
@@ -266,6 +271,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final byte[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -344,6 +350,7 @@
/** char support class */
static final class FJChar {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final char[] a, w;
final int base, size, wbase, gran;
@@ -377,6 +384,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final char[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -455,6 +463,7 @@
/** short support class */
static final class FJShort {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final short[] a, w;
final int base, size, wbase, gran;
@@ -488,6 +497,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final short[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -566,6 +576,7 @@
/** int support class */
static final class FJInt {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final int[] a, w;
final int base, size, wbase, gran;
@@ -599,6 +610,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final int[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -677,6 +689,7 @@
/** long support class */
static final class FJLong {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final long[] a, w;
final int base, size, wbase, gran;
@@ -710,6 +723,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final long[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -788,6 +802,7 @@
/** float support class */
static final class FJFloat {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final float[] a, w;
final int base, size, wbase, gran;
@@ -821,6 +836,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final float[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
@@ -899,6 +915,7 @@
/** double support class */
static final class FJDouble {
static final class Sorter extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final double[] a, w;
final int base, size, wbase, gran;
@@ -932,6 +949,7 @@
}
static final class Merger extends CountedCompleter<Void> {
+ @java.io.Serial
static final long serialVersionUID = 2446542900576103244L;
final double[] a, w; // main and workspace arrays
final int lbase, lsize, rbase, rsize, wbase, gran;
--- a/src/java.base/share/classes/java/util/BitSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/BitSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -83,6 +83,7 @@
* bit position i % 64 (where bit position 0 refers to the least
* significant bit and 63 refers to the most significant bit).
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("bits", long[].class),
};
@@ -104,6 +105,7 @@
private transient boolean sizeIsSticky = false;
/* use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 7997698588986878753L;
/**
@@ -1124,6 +1126,7 @@
* Save the state of the {@code BitSet} instance to a stream (i.e.,
* serialize it).
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream s)
throws IOException {
@@ -1141,6 +1144,7 @@
* Reconstitute the {@code BitSet} instance from a stream (i.e.,
* deserialize it).
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException {
--- a/src/java.base/share/classes/java/util/Calendar.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Calendar.java Thu Aug 29 16:31:34 2019 -0700
@@ -1005,6 +1005,7 @@
private int serialVersionOnStream = currentSerialVersion;
// Proclaim serialization compatibility with JDK 1.1
+ @java.io.Serial
static final long serialVersionUID = -1807547505821590642L;
// Mask values for calendar fields
@@ -3526,6 +3527,7 @@
* removed from the serialization stream; this will probably happen in the
* near future.
*/
+ @java.io.Serial
private synchronized void writeObject(ObjectOutputStream stream)
throws IOException
{
@@ -3580,6 +3582,7 @@
/**
* Reconstitutes this object from a stream (i.e., deserialize it).
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/util/Collections.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Collections.java Thu Aug 29 16:31:34 2019 -0700
@@ -1021,6 +1021,7 @@
* @serial include
*/
static class UnmodifiableCollection<E> implements Collection<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 1820017752578914078L;
final Collection<? extends E> c;
@@ -1127,6 +1128,7 @@
*/
static class UnmodifiableSet<E> extends UnmodifiableCollection<E>
implements Set<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -9215047833775013803L;
UnmodifiableSet(Set<? extends E> s) {super(s);}
@@ -1160,6 +1162,7 @@
static class UnmodifiableSortedSet<E>
extends UnmodifiableSet<E>
implements SortedSet<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -4929149591599911165L;
private final SortedSet<E> ss;
@@ -1212,6 +1215,7 @@
extends UnmodifiableSortedSet<E>
implements NavigableSet<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -6027448201786391929L;
/**
@@ -1222,12 +1226,14 @@
*/
private static class EmptyNavigableSet<E> extends UnmodifiableNavigableSet<E>
implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -6291252904449939134L;
public EmptyNavigableSet() {
super(new TreeSet<>());
}
+ @java.io.Serial
private Object readResolve() { return EMPTY_NAVIGABLE_SET; }
}
@@ -1295,6 +1301,7 @@
*/
static class UnmodifiableList<E> extends UnmodifiableCollection<E>
implements List<E> {
+ @java.io.Serial
private static final long serialVersionUID = -283967356065247728L;
final List<? extends E> list;
@@ -1379,6 +1386,7 @@
* serialized in 1.4.1 and deserialized in 1.4 will become
* UnmodifiableList instances, as this method was missing in 1.4.
*/
+ @java.io.Serial
private Object readResolve() {
return (list instanceof RandomAccess
? new UnmodifiableRandomAccessList<>(list)
@@ -1401,6 +1409,7 @@
list.subList(fromIndex, toIndex));
}
+ @java.io.Serial
private static final long serialVersionUID = -2542308836966382001L;
/**
@@ -1409,6 +1418,7 @@
* a readResolve method that inverts this transformation upon
* deserialization.
*/
+ @java.io.Serial
private Object writeReplace() {
return new UnmodifiableList<>(list);
}
@@ -1437,6 +1447,7 @@
* @serial include
*/
private static class UnmodifiableMap<K,V> implements Map<K,V>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -1034234728574286014L;
private final Map<? extends K, ? extends V> m;
@@ -1563,6 +1574,7 @@
*/
static class UnmodifiableEntrySet<K,V>
extends UnmodifiableSet<Map.Entry<K,V>> {
+ @java.io.Serial
private static final long serialVersionUID = 7854390611657943733L;
@SuppressWarnings({"unchecked", "rawtypes"})
@@ -1794,6 +1806,7 @@
static class UnmodifiableSortedMap<K,V>
extends UnmodifiableMap<K,V>
implements SortedMap<K,V>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -8806743815996713206L;
private final SortedMap<K, ? extends V> sm;
@@ -1838,6 +1851,7 @@
static class UnmodifiableNavigableMap<K,V>
extends UnmodifiableSortedMap<K,V>
implements NavigableMap<K,V>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -4858195264774772197L;
/**
@@ -1850,6 +1864,7 @@
private static class EmptyNavigableMap<K,V> extends UnmodifiableNavigableMap<K,V>
implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -2239321462712562324L;
EmptyNavigableMap() { super(new TreeMap<>()); }
@@ -1858,6 +1873,7 @@
public NavigableSet<K> navigableKeySet()
{ return emptyNavigableSet(); }
+ @java.io.Serial
private Object readResolve() { return EMPTY_NAVIGABLE_MAP; }
}
@@ -1998,6 +2014,7 @@
* @serial include
*/
static class SynchronizedCollection<E> implements Collection<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 3053995032091335093L;
final Collection<E> c; // Backing Collection
@@ -2082,6 +2099,7 @@
public Stream<E> parallelStream() {
return c.parallelStream(); // Must be manually synched by user!
}
+ @java.io.Serial
private void writeObject(ObjectOutputStream s) throws IOException {
synchronized (mutex) {s.defaultWriteObject();}
}
@@ -2128,6 +2146,7 @@
static class SynchronizedSet<E>
extends SynchronizedCollection<E>
implements Set<E> {
+ @java.io.Serial
private static final long serialVersionUID = 487447009682186044L;
SynchronizedSet(Set<E> s) {
@@ -2197,6 +2216,7 @@
extends SynchronizedSet<E>
implements SortedSet<E>
{
+ @java.io.Serial
private static final long serialVersionUID = 8695801310862127406L;
private final SortedSet<E> ss;
@@ -2291,6 +2311,7 @@
extends SynchronizedSortedSet<E>
implements NavigableSet<E>
{
+ @java.io.Serial
private static final long serialVersionUID = -5505529816273629798L;
private final NavigableSet<E> ns;
@@ -2400,6 +2421,7 @@
static class SynchronizedList<E>
extends SynchronizedCollection<E>
implements List<E> {
+ @java.io.Serial
private static final long serialVersionUID = -7754090372962971524L;
final List<E> list;
@@ -2482,6 +2504,7 @@
* serialized in 1.4.1 and deserialized in 1.4 will become
* SynchronizedList instances, as this method was missing in 1.4.
*/
+ @java.io.Serial
private Object readResolve() {
return (list instanceof RandomAccess
? new SynchronizedRandomAccessList<>(list)
@@ -2511,6 +2534,7 @@
}
}
+ @java.io.Serial
private static final long serialVersionUID = 1530674583602358482L;
/**
@@ -2519,6 +2543,7 @@
* a readResolve method that inverts this transformation upon
* deserialization.
*/
+ @java.io.Serial
private Object writeReplace() {
return new SynchronizedList<>(list);
}
@@ -2563,6 +2588,7 @@
*/
private static class SynchronizedMap<K,V>
implements Map<K,V>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 1978198479659022715L;
private final Map<K,V> m; // Backing Map
@@ -2697,6 +2723,7 @@
synchronized (mutex) {return m.merge(key, value, remappingFunction);}
}
+ @java.io.Serial
private void writeObject(ObjectOutputStream s) throws IOException {
synchronized (mutex) {s.defaultWriteObject();}
}
@@ -2758,6 +2785,7 @@
extends SynchronizedMap<K,V>
implements SortedMap<K,V>
{
+ @java.io.Serial
private static final long serialVersionUID = -8798146769416483793L;
private final SortedMap<K,V> sm;
@@ -2860,6 +2888,7 @@
extends SynchronizedSortedMap<K,V>
implements NavigableMap<K,V>
{
+ @java.io.Serial
private static final long serialVersionUID = 699392247599746807L;
private final NavigableMap<K,V> nm;
@@ -3038,6 +3067,7 @@
* @serial include
*/
static class CheckedCollection<E> implements Collection<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 1578914078182001775L;
final Collection<E> c;
@@ -3187,6 +3217,7 @@
extends CheckedCollection<E>
implements Queue<E>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 1433151992604707767L;
final Queue<E> queue;
@@ -3241,6 +3272,7 @@
static class CheckedSet<E> extends CheckedCollection<E>
implements Set<E>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 4694047833775013803L;
CheckedSet(Set<E> s, Class<E> elementType) { super(s, elementType); }
@@ -3288,6 +3320,7 @@
static class CheckedSortedSet<E> extends CheckedSet<E>
implements SortedSet<E>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 1599911165492914959L;
private final SortedSet<E> ss;
@@ -3351,6 +3384,7 @@
static class CheckedNavigableSet<E> extends CheckedSortedSet<E>
implements NavigableSet<E>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = -5429120189805438922L;
private final NavigableSet<E> ns;
@@ -3434,6 +3468,7 @@
extends CheckedCollection<E>
implements List<E>
{
+ @java.io.Serial
private static final long serialVersionUID = 65247728283967356L;
final List<E> list;
@@ -3519,6 +3554,7 @@
static class CheckedRandomAccessList<E> extends CheckedList<E>
implements RandomAccess
{
+ @java.io.Serial
private static final long serialVersionUID = 1638200125423088369L;
CheckedRandomAccessList(List<E> list, Class<E> type) {
@@ -3580,6 +3616,7 @@
private static class CheckedMap<K,V>
implements Map<K,V>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 5742860141034234728L;
private final Map<K, V> m;
@@ -3979,6 +4016,7 @@
static class CheckedSortedMap<K,V> extends CheckedMap<K,V>
implements SortedMap<K,V>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 1599671320688067438L;
private final SortedMap<K, V> sm;
@@ -4053,6 +4091,7 @@
static class CheckedNavigableMap<K,V> extends CheckedSortedMap<K,V>
implements NavigableMap<K,V>, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = -4852462692372534096L;
private final NavigableMap<K, V> nm;
@@ -4331,6 +4370,7 @@
extends AbstractSet<E>
implements Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 1582296315990362920L;
public Iterator<E> iterator() { return emptyIterator(); }
@@ -4364,6 +4404,7 @@
public Spliterator<E> spliterator() { return Spliterators.emptySpliterator(); }
// Preserves singleton property
+ @java.io.Serial
private Object readResolve() {
return EMPTY_SET;
}
@@ -4455,6 +4496,7 @@
private static class EmptyList<E>
extends AbstractList<E>
implements RandomAccess, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 8842843931221139166L;
public Iterator<E> iterator() {
@@ -4512,6 +4554,7 @@
public Spliterator<E> spliterator() { return Spliterators.emptySpliterator(); }
// Preserves singleton property
+ @java.io.Serial
private Object readResolve() {
return EMPTY_LIST;
}
@@ -4598,6 +4641,7 @@
extends AbstractMap<K,V>
implements Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 6428348081105594320L;
public int size() {return 0;}
@@ -4678,6 +4722,7 @@
}
// Preserves singleton property
+ @java.io.Serial
private Object readResolve() {
return EMPTY_MAP;
}
@@ -4777,6 +4822,7 @@
extends AbstractSet<E>
implements Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 3193687207550431679L;
private final E element;
@@ -4830,6 +4876,7 @@
extends AbstractList<E>
implements RandomAccess, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 3093736618740652951L;
private final E element;
@@ -4898,6 +4945,7 @@
private static class SingletonMap<K,V>
extends AbstractMap<K,V>
implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -6979724477215052911L;
private final K k;
@@ -5035,6 +5083,7 @@
extends AbstractList<E>
implements RandomAccess, Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 2739099268398711800L;
final int n;
@@ -5166,6 +5215,7 @@
return stream().spliterator();
}
+ @java.io.Serial
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
ois.defaultReadObject();
SharedSecrets.getJavaObjectInputStreamAccess().checkArray(ois, Object[].class, n);
@@ -5203,6 +5253,7 @@
private static class ReverseComparator
implements Comparator<Comparable<Object>>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 7207038068494060240L;
static final ReverseComparator REVERSE_ORDER
@@ -5212,6 +5263,7 @@
return c2.compareTo(c1);
}
+ @java.io.Serial
private Object readResolve() { return Collections.reverseOrder(); }
@Override
@@ -5258,6 +5310,7 @@
private static class ReverseComparator2<T> implements Comparator<T>,
Serializable
{
+ @java.io.Serial
private static final long serialVersionUID = 4374092139857L;
/**
@@ -5592,8 +5645,10 @@
@Override
public Stream<E> parallelStream() {return s.parallelStream();}
+ @java.io.Serial
private static final long serialVersionUID = 2454657854757543876L;
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
@@ -5629,6 +5684,7 @@
*/
static class AsLIFOQueue<E> extends AbstractQueue<E>
implements Queue<E>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 1802017725587941708L;
private final Deque<E> q;
AsLIFOQueue(Deque<E> q) { this.q = q; }
--- a/src/java.base/share/classes/java/util/Comparators.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Comparators.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -62,6 +62,7 @@
* Null-friendly comparators
*/
static final class NullComparator<T> implements Comparator<T>, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -7569533591570686392L;
private final boolean nullFirst;
// if null, non-null Ts are considered equal
--- a/src/java.base/share/classes/java/util/ConcurrentModificationException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ConcurrentModificationException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -68,6 +68,7 @@
* @since 1.2
*/
public class ConcurrentModificationException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -3666751008965953603L;
/**
--- a/src/java.base/share/classes/java/util/Currency.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Currency.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2018, 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
@@ -113,6 +113,7 @@
*/
public final class Currency implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -158308464356906721L;
/**
@@ -661,6 +662,7 @@
/**
* Resolves instances being deserialized to a single instance per currency.
*/
+ @java.io.Serial
private Object readResolve() {
return getInstance(currencyCode);
}
--- a/src/java.base/share/classes/java/util/Date.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Date.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -154,6 +154,7 @@
* interoperability with JDK1.1. The Date was modified to write
* and read only the UTC time.
*/
+ @java.io.Serial
private static final long serialVersionUID = 7523967970034938905L;
/**
@@ -1318,6 +1319,7 @@
* is emitted (long). This represents the offset from
* January 1, 1970, 00:00:00 GMT in milliseconds.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream s)
throws IOException
{
@@ -1328,6 +1330,7 @@
/**
* Reconstitute this object from a stream (i.e., deserialize it).
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/util/DuplicateFormatFlagsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/DuplicateFormatFlagsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -37,6 +37,7 @@
*/
public class DuplicateFormatFlagsException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 18890531L;
private String flags;
--- a/src/java.base/share/classes/java/util/EmptyStackException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/EmptyStackException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -35,6 +35,7 @@
*/
public
class EmptyStackException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 5084686378493302095L;
/**
--- a/src/java.base/share/classes/java/util/EnumMap.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/EnumMap.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2018, 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
@@ -754,6 +754,7 @@
.getEnumConstantsShared(keyType);
}
+ @java.io.Serial
private static final long serialVersionUID = 458661240069192865L;
/**
@@ -765,6 +766,7 @@
* and value (Object) for each key-value mapping represented
* by the enum map.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException
{
@@ -790,6 +792,7 @@
* deserialize it).
*/
@SuppressWarnings("unchecked")
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/util/EnumSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/EnumSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -80,6 +80,7 @@
implements Cloneable, java.io.Serializable
{
// declare EnumSet.class serialization compatibility with JDK 8
+ @java.io.Serial
private static final long serialVersionUID = 1009687484059888093L;
/**
@@ -449,6 +450,7 @@
* held by this proxy
*/
@SuppressWarnings("unchecked")
+ @java.io.Serial
private Object readResolve() {
// instead of cast to E, we should perhaps use elementType.cast()
// to avoid injection of forged stream, but it will slow the
@@ -459,6 +461,7 @@
return result;
}
+ @java.io.Serial
private static final long serialVersionUID = 362491234563181265L;
}
@@ -471,6 +474,7 @@
* @return a {@link SerializationProxy}
* representing the state of this instance
*/
+ @java.io.Serial
Object writeReplace() {
return new SerializationProxy<>(this);
}
@@ -479,6 +483,7 @@
* @param s the stream
* @throws java.io.InvalidObjectException always
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.InvalidObjectException {
throw new java.io.InvalidObjectException("Proxy required");
--- a/src/java.base/share/classes/java/util/EventObject.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/EventObject.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -38,6 +38,7 @@
public class EventObject implements java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 5516075349620653480L;
/**
--- a/src/java.base/share/classes/java/util/FormatFlagsConversionMismatchException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/FormatFlagsConversionMismatchException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -37,6 +37,7 @@
public class FormatFlagsConversionMismatchException
extends IllegalFormatException
{
+ @java.io.Serial
private static final long serialVersionUID = 19120414L;
private String f;
--- a/src/java.base/share/classes/java/util/FormatterClosedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/FormatterClosedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -36,6 +36,7 @@
*/
public class FormatterClosedException extends IllegalStateException {
+ @java.io.Serial
private static final long serialVersionUID = 18111216L;
/**
--- a/src/java.base/share/classes/java/util/GregorianCalendar.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/GregorianCalendar.java Thu Aug 29 16:31:34 2019 -0700
@@ -497,6 +497,7 @@
// Proclaim serialization compatibility with JDK 1.1
@SuppressWarnings("FieldNameHidesFieldInSuperclass")
+ @java.io.Serial
static final long serialVersionUID = -8125100834729963327L;
// Reference to the sun.util.calendar.Gregorian instance (singleton).
@@ -3229,6 +3230,7 @@
/**
* Updates internal state.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
--- a/src/java.base/share/classes/java/util/HashMap.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/HashMap.java Thu Aug 29 16:31:34 2019 -0700
@@ -138,6 +138,7 @@
public class HashMap<K,V> extends AbstractMap<K,V>
implements Map<K,V>, Cloneable, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 362498820763181265L;
/*
@@ -1489,6 +1490,7 @@
* for each key-value mapping. The key-value mappings are
* emitted in no particular order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws IOException {
int buckets = capacity();
@@ -1506,6 +1508,7 @@
* could not be found
* @throws IOException if an I/O error occurs
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException {
// Read in the threshold (ignored), loadfactor, and any hidden stuff
--- a/src/java.base/share/classes/java/util/HashSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/HashSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -91,6 +91,7 @@
extends AbstractSet<E>
implements Set<E>, Cloneable, java.io.Serializable
{
+ @java.io.Serial
static final long serialVersionUID = -5024744406713321676L;
private transient HashMap<E,Object> map;
@@ -271,6 +272,7 @@
* (int), followed by all of its elements (each an Object) in
* no particular order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out any hidden serialization magic
@@ -292,6 +294,7 @@
* Reconstitute the {@code HashSet} instance from a stream (that is,
* deserialize it).
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in any hidden serialization magic
--- a/src/java.base/share/classes/java/util/Hashtable.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Hashtable.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -171,6 +171,7 @@
private transient int modCount = 0;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 1421746759512286392L;
/**
@@ -1201,6 +1202,7 @@
* for each key-value mapping represented by the Hashtable
* The key-value mappings are emitted in no particular order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws IOException {
writeHashtable(s);
@@ -1254,6 +1256,7 @@
/**
* Reconstitute the Hashtable from a stream (i.e., deserialize it).
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException {
readHashtable(s);
--- a/src/java.base/share/classes/java/util/IdentityHashMap.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IdentityHashMap.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2018, 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
@@ -1259,7 +1259,7 @@
}
}
-
+ @java.io.Serial
private static final long serialVersionUID = 8188218128353913216L;
/**
@@ -1272,6 +1272,7 @@
* IdentityHashMap. The key-value mappings are emitted in no
* particular order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out and any hidden stuff
@@ -1295,6 +1296,7 @@
* Reconstitutes the {@code IdentityHashMap} instance from a stream (i.e.,
* deserializes it).
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in any hidden stuff
--- a/src/java.base/share/classes/java/util/IllegalFormatCodePointException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllegalFormatCodePointException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2005, 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
@@ -38,6 +38,7 @@
*/
public class IllegalFormatCodePointException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 19080630L;
private int c;
--- a/src/java.base/share/classes/java/util/IllegalFormatConversionException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllegalFormatConversionException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, 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
@@ -37,6 +37,7 @@
*/
public class IllegalFormatConversionException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 17000126L;
private char c;
--- a/src/java.base/share/classes/java/util/IllegalFormatException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllegalFormatException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -35,6 +35,7 @@
*/
public class IllegalFormatException extends IllegalArgumentException {
+ @java.io.Serial
private static final long serialVersionUID = 18830826L;
// package-private to prevent explicit instantiation
--- a/src/java.base/share/classes/java/util/IllegalFormatFlagsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllegalFormatFlagsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -36,6 +36,7 @@
*/
public class IllegalFormatFlagsException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 790824L;
private String flags;
--- a/src/java.base/share/classes/java/util/IllegalFormatPrecisionException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllegalFormatPrecisionException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -34,6 +34,7 @@
*/
public class IllegalFormatPrecisionException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 18711008L;
private int p;
--- a/src/java.base/share/classes/java/util/IllegalFormatWidthException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllegalFormatWidthException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -33,6 +33,7 @@
*/
public class IllegalFormatWidthException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 16660902L;
private int w;
--- a/src/java.base/share/classes/java/util/IllformedLocaleException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/IllformedLocaleException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -41,6 +41,7 @@
*/
public class IllformedLocaleException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -5245986824925681401L;
private int _errIdx = -1;
--- a/src/java.base/share/classes/java/util/ImmutableCollections.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ImmutableCollections.java Thu Aug 29 16:31:34 2019 -0700
@@ -418,10 +418,12 @@
throw outOfBounds(index);
}
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
throw new InvalidObjectException("not serial proxy");
}
+ @java.io.Serial
private Object writeReplace() {
if (e1 == null) {
return new CollSer(CollSer.IMM_LIST, e0);
@@ -498,10 +500,12 @@
return elements[index];
}
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
throw new InvalidObjectException("not serial proxy");
}
+ @java.io.Serial
private Object writeReplace() {
return new CollSer(CollSer.IMM_LIST, elements);
}
@@ -623,10 +627,12 @@
};
}
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
throw new InvalidObjectException("not serial proxy");
}
+ @java.io.Serial
private Object writeReplace() {
if (e1 == null) {
return new CollSer(CollSer.IMM_SET, e0);
@@ -806,10 +812,12 @@
}
}
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
throw new InvalidObjectException("not serial proxy");
}
+ @java.io.Serial
private Object writeReplace() {
Object[] array = new Object[size];
int dest = 0;
@@ -906,10 +914,12 @@
return false;
}
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
throw new InvalidObjectException("not serial proxy");
}
+ @java.io.Serial
private Object writeReplace() {
return new CollSer(CollSer.IMM_MAP, k0, v0);
}
@@ -1110,10 +1120,12 @@
}
}
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
throw new InvalidObjectException("not serial proxy");
}
+ @java.io.Serial
private Object writeReplace() {
Object[] array = new Object[2 * size];
int len = table.length;
@@ -1138,6 +1150,7 @@
* @since 9
*/
final class CollSer implements Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 6309168927139932177L;
static final int IMM_LIST = 1;
@@ -1198,6 +1211,7 @@
* @throws InvalidObjectException if the count is negative
* @since 9
*/
+ @java.io.Serial
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
ois.defaultReadObject();
int len = ois.readInt();
@@ -1227,6 +1241,7 @@
* @throws IOException if an I/O error occurs
* @since 9
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream oos) throws IOException {
oos.defaultWriteObject();
oos.writeInt(array.length);
@@ -1253,6 +1268,7 @@
* @throws ObjectStreamException if another serialization error has occurred
* @since 9
*/
+ @java.io.Serial
private Object readResolve() throws ObjectStreamException {
try {
if (array == null) {
--- a/src/java.base/share/classes/java/util/InputMismatchException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/InputMismatchException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2008, 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
@@ -36,6 +36,7 @@
*/
public
class InputMismatchException extends NoSuchElementException {
+ @java.io.Serial
private static final long serialVersionUID = 8811230760997066428L;
/**
--- a/src/java.base/share/classes/java/util/InvalidPropertiesFormatException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/InvalidPropertiesFormatException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, 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
@@ -45,6 +45,7 @@
public class InvalidPropertiesFormatException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 7763056076009360219L;
/**
@@ -74,6 +75,7 @@
* Throws NotSerializableException, since InvalidPropertiesFormatException
* objects are not intended to be serializable.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream out)
throws NotSerializableException
{
@@ -84,6 +86,7 @@
* Throws NotSerializableException, since InvalidPropertiesFormatException
* objects are not intended to be serializable.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream in)
throws NotSerializableException
{
--- a/src/java.base/share/classes/java/util/JapaneseImperialCalendar.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/JapaneseImperialCalendar.java Thu Aug 29 16:31:34 2019 -0700
@@ -251,6 +251,7 @@
// Proclaim serialization compatibility with JDK 1.6
@SuppressWarnings("FieldNameHidesFieldInSuperclass")
+ @java.io.Serial
private static final long serialVersionUID = -3364572813905467929L;
static {
@@ -2391,6 +2392,7 @@
/**
* Updates internal state.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
--- a/src/java.base/share/classes/java/util/JumboEnumSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/JumboEnumSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, 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
@@ -34,6 +34,7 @@
* @serial exclude
*/
class JumboEnumSet<E extends Enum<E>> extends EnumSet<E> {
+ @java.io.Serial
private static final long serialVersionUID = 334349849919042784L;
/**
--- a/src/java.base/share/classes/java/util/LinkedHashMap.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/LinkedHashMap.java Thu Aug 29 16:31:34 2019 -0700
@@ -196,6 +196,7 @@
}
}
+ @java.io.Serial
private static final long serialVersionUID = 3801124242820219131L;
/**
--- a/src/java.base/share/classes/java/util/LinkedHashSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/LinkedHashSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2018, 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 @@
extends HashSet<E>
implements Set<E>, Cloneable, java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -2851667679971038690L;
/**
--- a/src/java.base/share/classes/java/util/LinkedList.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/LinkedList.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -1112,6 +1112,7 @@
return a;
}
+ @java.io.Serial
private static final long serialVersionUID = 876323262645176354L;
/**
@@ -1122,6 +1123,7 @@
* contains) is emitted (int), followed by all of its
* elements (each an Object) in the proper order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out any hidden serialization magic
@@ -1140,6 +1142,7 @@
* (that is, deserializes it).
*/
@SuppressWarnings("unchecked")
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in any hidden serialization magic
--- a/src/java.base/share/classes/java/util/Locale.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Locale.java Thu Aug 29 16:31:34 2019 -0700
@@ -633,6 +633,7 @@
/** serialization ID
*/
+ @java.io.Serial
static final long serialVersionUID = 9149081749638150636L;
/**
@@ -2301,6 +2302,7 @@
* (See <a href="java.base/java/util/Locale.html#getExtensionKeys()">getExtensionKeys()</a>,
* <a href="java.base/java/util/Locale.html#getExtension(char)">getExtension(char)</a>)
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("language", String.class),
new ObjectStreamField("country", String.class),
@@ -2316,6 +2318,7 @@
* @throws IOException
* @since 1.7
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
ObjectOutputStream.PutField fields = out.putFields();
fields.put("language", baseLocale.getLanguage());
@@ -2335,6 +2338,7 @@
* @throws IllformedLocaleException
* @since 1.7
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = in.readFields();
String language = (String)fields.get("language", "");
@@ -2371,6 +2375,7 @@
* the deserialized <code>Locale</code>.
* @throws java.io.ObjectStreamException
*/
+ @java.io.Serial
private Object readResolve() throws java.io.ObjectStreamException {
return getInstance(baseLocale.getLanguage(), baseLocale.getScript(),
baseLocale.getRegion(), baseLocale.getVariant(), localeExtensions);
--- a/src/java.base/share/classes/java/util/MissingFormatArgumentException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/MissingFormatArgumentException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -38,6 +38,7 @@
*/
public class MissingFormatArgumentException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 19190115L;
private String s;
--- a/src/java.base/share/classes/java/util/MissingFormatWidthException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/MissingFormatWidthException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2013, 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
@@ -36,6 +36,7 @@
*/
public class MissingFormatWidthException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 15560123L;
private String s;
--- a/src/java.base/share/classes/java/util/MissingResourceException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/MissingResourceException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -108,6 +108,7 @@
//============ privates ============
// serialization compatibility with JDK1.1
+ @java.io.Serial
private static final long serialVersionUID = -4876345176062000401L;
/**
--- a/src/java.base/share/classes/java/util/NoSuchElementException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/NoSuchElementException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -36,6 +36,7 @@
*/
public
class NoSuchElementException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = 6769829250639411880L;
/**
--- a/src/java.base/share/classes/java/util/PriorityQueue.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/PriorityQueue.java Thu Aug 29 16:31:34 2019 -0700
@@ -87,6 +87,7 @@
public class PriorityQueue<E> extends AbstractQueue<E>
implements java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -7720805057305804111L;
private static final int DEFAULT_INITIAL_CAPACITY = 11;
@@ -755,6 +756,7 @@
* emitted (int), followed by all of its elements
* (each an {@code Object}) in the proper order.
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out element count, and any hidden stuff
@@ -778,6 +780,7 @@
* could not be found
* @throws java.io.IOException if an I/O error occurs
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in size, and any hidden stuff
--- a/src/java.base/share/classes/java/util/Properties.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Properties.java Thu Aug 29 16:31:34 2019 -0700
@@ -142,6 +142,7 @@
/**
* use serialVersionUID from JDK 1.1.X for interoperability
*/
+ @java.io.Serial
private static final long serialVersionUID = 4112578634029874840L;
private static final Unsafe UNSAFE = Unsafe.getUnsafe();
--- a/src/java.base/share/classes/java/util/PropertyPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/PropertyPermission.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -385,7 +385,7 @@
return new PropertyPermissionCollection();
}
-
+ @java.io.Serial
private static final long serialVersionUID = 885438825399942851L;
/**
@@ -393,6 +393,7 @@
* to a stream. The actions are serialized, and the superclass
* takes care of the name.
*/
+ @java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
throws IOException
{
@@ -407,6 +408,7 @@
* readObject is called to restore the state of the PropertyPermission from
* a stream.
*/
+ @java.io.Serial
private synchronized void readObject(java.io.ObjectInputStream s)
throws IOException, ClassNotFoundException
{
@@ -596,6 +598,7 @@
return (Enumeration)perms.elements();
}
+ @java.io.Serial
private static final long serialVersionUID = 7015263904581634791L;
// Need to maintain serialization interoperability with earlier releases,
@@ -625,6 +628,7 @@
* serialization compatibility with earlier releases. all_allowed
* unchanged.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out) throws IOException {
// Don't call out.defaultWriteObject()
@@ -644,6 +648,7 @@
* Reads in a Hashtable of PropertyPermissions and saves them in the
* perms field. Reads in all_allowed.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/util/Random.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Random.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -76,6 +76,7 @@
public
class Random implements java.io.Serializable {
/** use serialVersionUID from JDK 1.1 for interoperability */
+ @java.io.Serial
static final long serialVersionUID = 3905348978240129619L;
/**
@@ -1168,6 +1169,7 @@
* @serialField haveNextNextGaussian boolean
* nextNextGaussian is valid
*/
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField("seed", Long.TYPE),
new ObjectStreamField("nextNextGaussian", Double.TYPE),
@@ -1178,6 +1180,7 @@
* Reconstitute the {@code Random} instance from a stream (that is,
* deserialize it).
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
@@ -1197,6 +1200,7 @@
/**
* Save the {@code Random} instance to a stream.
*/
+ @java.io.Serial
private synchronized void writeObject(ObjectOutputStream s)
throws IOException {
--- a/src/java.base/share/classes/java/util/RegularEnumSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/RegularEnumSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2012, 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
@@ -34,6 +34,7 @@
* @serial exclude
*/
class RegularEnumSet<E extends Enum<E>> extends EnumSet<E> {
+ @java.io.Serial
private static final long serialVersionUID = 3411599620347842686L;
/**
* Bit vector representation of this set. The 2^k bit indicates the
--- a/src/java.base/share/classes/java/util/ServiceConfigurationError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/ServiceConfigurationError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
@@ -39,6 +39,7 @@
extends Error
{
+ @java.io.Serial
private static final long serialVersionUID = 74132770414881L;
/**
--- a/src/java.base/share/classes/java/util/SimpleTimeZone.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/SimpleTimeZone.java Thu Aug 29 16:31:34 2019 -0700
@@ -1242,6 +1242,7 @@
public static final int UTC_TIME = 2;
// Proclaim compatibility with 1.1
+ @java.io.Serial
static final long serialVersionUID = -403250971215465050L;
// the internal serial version which says which version was written
@@ -1636,6 +1637,7 @@
* mode <code>DOW_IN_MONTH_MODE</code>, which is the only mode recognized by
* JDK 1.1.
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream stream)
throws IOException
{
@@ -1666,6 +1668,7 @@
* We handle both JDK 1.1
* binary formats and full formats with a packed byte array.
*/
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/java/util/Stack.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Stack.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -137,5 +137,6 @@
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 1224463164541339165L;
}
--- a/src/java.base/share/classes/java/util/TimeZone.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/TimeZone.java Thu Aug 29 16:31:34 2019 -0700
@@ -160,6 +160,7 @@
private static final int ONE_DAY = 24*ONE_HOUR;
// Proclaim serialization compatibility with JDK 1.1
+ @java.io.Serial
static final long serialVersionUID = 3581463369166924961L;
/**
--- a/src/java.base/share/classes/java/util/TooManyListenersException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/TooManyListenersException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -48,6 +48,7 @@
*/
public class TooManyListenersException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 5074640544770687831L;
/**
--- a/src/java.base/share/classes/java/util/TreeMap.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/TreeMap.java Thu Aug 29 16:31:34 2019 -0700
@@ -1338,6 +1338,7 @@
*/
abstract static class NavigableSubMap<K,V> extends AbstractMap<K,V>
implements NavigableMap<K,V>, java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -2102997345730753016L;
/**
* The backing map.
@@ -1843,6 +1844,7 @@
* @serial include
*/
static final class AscendingSubMap<K,V> extends NavigableSubMap<K,V> {
+ @java.io.Serial
private static final long serialVersionUID = 912986545866124060L;
AscendingSubMap(TreeMap<K,V> m,
@@ -1926,6 +1928,7 @@
* @serial include
*/
static final class DescendingSubMap<K,V> extends NavigableSubMap<K,V> {
+ @java.io.Serial
private static final long serialVersionUID = 912986545866120460L;
DescendingSubMap(TreeMap<K,V> m,
boolean fromStart, K lo, boolean loInclusive,
@@ -2018,9 +2021,11 @@
*/
private class SubMap extends AbstractMap<K,V>
implements SortedMap<K,V>, java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = -6520786458950516097L;
private boolean fromStart = false, toEnd = false;
private K fromKey, toKey;
+ @java.io.Serial
private Object readResolve() {
return new AscendingSubMap<>(TreeMap.this,
fromStart, fromKey, true,
@@ -2405,6 +2410,7 @@
setColor(x, BLACK);
}
+ @java.io.Serial
private static final long serialVersionUID = 919286545866124006L;
/**
@@ -2419,6 +2425,7 @@
* or by the keys' natural ordering if the TreeMap has no
* Comparator).
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out the Comparator and any hidden stuff
@@ -2438,6 +2445,7 @@
* Reconstitute the {@code TreeMap} instance from a stream (i.e.,
* deserialize it).
*/
+ @java.io.Serial
private void readObject(final java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in the Comparator and any hidden stuff
--- a/src/java.base/share/classes/java/util/TreeSet.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/TreeSet.java Thu Aug 29 16:31:34 2019 -0700
@@ -492,6 +492,7 @@
* set's Comparator, or by the elements' natural ordering if
* the set has no Comparator).
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
// Write out any hidden stuff
@@ -512,6 +513,7 @@
* Reconstitute the {@code TreeSet} instance from a stream (that is,
* deserialize it).
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
// Read in any hidden stuff
@@ -554,5 +556,6 @@
return TreeMap.keySpliteratorFor(m);
}
+ @java.io.Serial
private static final long serialVersionUID = -2479143000061671589L;
}
--- a/src/java.base/share/classes/java/util/UUID.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/UUID.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2018, 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
@@ -75,6 +75,7 @@
/**
* Explicit serialVersionUID for interoperability.
*/
+ @java.io.Serial
private static final long serialVersionUID = -4856846361193249489L;
/*
--- a/src/java.base/share/classes/java/util/UnknownFormatConversionException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/UnknownFormatConversionException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2005, 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
@@ -36,6 +36,7 @@
*/
public class UnknownFormatConversionException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 19060418L;
private String s;
--- a/src/java.base/share/classes/java/util/UnknownFormatFlagsException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/UnknownFormatFlagsException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 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
@@ -36,6 +36,7 @@
*/
public class UnknownFormatFlagsException extends IllegalFormatException {
+ @java.io.Serial
private static final long serialVersionUID = 19370506L;
private String flags;
--- a/src/java.base/share/classes/java/util/Vector.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/Vector.java Thu Aug 29 16:31:34 2019 -0700
@@ -124,6 +124,7 @@
protected int capacityIncrement;
/** use serialVersionUID from JDK 1.0.2 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = -2767605614048989439L;
/**
@@ -1149,6 +1150,7 @@
* @throws ClassNotFoundException if the stream contains data
* of a non-existing class
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException {
ObjectInputStream.GetField gfields = in.readFields();
@@ -1170,6 +1172,7 @@
* @param s the stream
* @throws java.io.IOException if an I/O error occurs
*/
+ @java.io.Serial
private void writeObject(java.io.ObjectOutputStream s)
throws java.io.IOException {
final java.io.ObjectOutputStream.PutField fields = s.putFields();
--- a/src/java.base/share/classes/java/util/jar/JarException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/jar/JarException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -34,6 +34,7 @@
*/
public
class JarException extends java.util.zip.ZipException {
+ @java.io.Serial
private static final long serialVersionUID = 7159778400963954473L;
/**
--- a/src/java.base/share/classes/java/util/jar/JarVerifier.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/jar/JarVerifier.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -584,6 +584,7 @@
* signing data that can be compared by object reference identity.
*/
private static class VerifierCodeSource extends CodeSource {
+ @java.io.Serial
private static final long serialVersionUID = -9047366145967768825L;
URL vlocation;
--- a/src/java.base/share/classes/java/util/regex/Pattern.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/regex/Pattern.java Thu Aug 29 16:31:34 2019 -0700
@@ -935,6 +935,7 @@
*/
/** use serialVersionUID from Merlin b59 for interoperability */
+ @java.io.Serial
private static final long serialVersionUID = 5073258162644648461L;
/**
@@ -1376,6 +1377,7 @@
* Recompile the Pattern instance from a stream. The original pattern
* string is read in and the object tree is recompiled from it.
*/
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
--- a/src/java.base/share/classes/java/util/regex/PatternSyntaxException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/regex/PatternSyntaxException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2018, 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
@@ -37,6 +37,7 @@
public class PatternSyntaxException
extends IllegalArgumentException
{
+ @java.io.Serial
private static final long serialVersionUID = -3864639126226059218L;
private final String desc;
--- a/src/java.base/share/classes/java/util/zip/DataFormatException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/zip/DataFormatException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -33,6 +33,7 @@
*/
public
class DataFormatException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 2219632870893641452L;
/**
--- a/src/java.base/share/classes/java/util/zip/ZipError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/zip/ZipError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 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
@@ -32,6 +32,7 @@
* @since 1.6
*/
public class ZipError extends InternalError {
+ @java.io.Serial
private static final long serialVersionUID = 853973422266861979L;
/**
--- a/src/java.base/share/classes/java/util/zip/ZipException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/java/util/zip/ZipException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -37,6 +37,7 @@
public
class ZipException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 8000196834066748623L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/HandshakeCompletedEvent.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/HandshakeCompletedEvent.java Thu Aug 29 16:31:34 2019 -0700
@@ -49,6 +49,7 @@
*/
public class HandshakeCompletedEvent extends EventObject
{
+ @java.io.Serial
private static final long serialVersionUID = 7914963744257769778L;
private transient SSLSession session;
--- a/src/java.base/share/classes/javax/net/ssl/SSLException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2004, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -39,6 +39,7 @@
public
class SSLException extends IOException
{
+ @java.io.Serial
private static final long serialVersionUID = 4511006460650708967L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/SSLHandshakeException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLHandshakeException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -37,6 +37,7 @@
public
class SSLHandshakeException extends SSLException
{
+ @java.io.Serial
private static final long serialVersionUID = -5045881315018326890L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/SSLKeyException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLKeyException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -36,6 +36,7 @@
public
class SSLKeyException extends SSLException
{
+ @java.io.Serial
private static final long serialVersionUID = -8071664081941937874L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/SSLPeerUnverifiedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLPeerUnverifiedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -42,6 +42,7 @@
public
class SSLPeerUnverifiedException extends SSLException
{
+ @java.io.Serial
private static final long serialVersionUID = -8919512675000600547L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/SSLPermission.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLPermission.java Thu Aug 29 16:31:34 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
@@ -103,6 +103,7 @@
public final class SSLPermission extends BasicPermission {
+ @java.io.Serial
private static final long serialVersionUID = -3456898025505876775L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/SSLProtocolException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLProtocolException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -36,6 +36,7 @@
public
class SSLProtocolException extends SSLException
{
+ @java.io.Serial
private static final long serialVersionUID = 5445067063799134928L;
/**
--- a/src/java.base/share/classes/javax/net/ssl/SSLSessionBindingEvent.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/javax/net/ssl/SSLSessionBindingEvent.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -49,6 +49,7 @@
class SSLSessionBindingEvent
extends EventObject
{
+ @java.io.Serial
private static final long serialVersionUID = 3989172637106345L;
/**
--- a/src/java.base/share/classes/jdk/internal/loader/AbstractClassLoaderValue.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/loader/AbstractClassLoaderValue.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 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
@@ -346,6 +346,7 @@
}
static class RecursiveInvocationException extends IllegalStateException {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
RecursiveInvocationException() {
--- a/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2018, 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
@@ -178,6 +178,7 @@
// Internal state.
//////////////////////////////////////////////////////////////////////
+ @java.io.Serial
private static final ObjectStreamField[] serialPersistentFields = {
new ObjectStreamField( "exception", Exception.class )
};
@@ -188,6 +189,7 @@
* @param out stream used for serialization.
* @throws IOException thrown by <code>ObjectOutputStream</code>
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream out)
throws IOException {
ObjectOutputStream.PutField fields = out.putFields();
@@ -204,6 +206,7 @@
* @throws IOException thrown by <code>ObjectInputStream</code>
* @throws ClassNotFoundException thrown by <code>ObjectInputStream</code>
*/
+ @java.io.Serial
private void readObject(ObjectInputStream in)
throws IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = in.readFields();
@@ -233,6 +236,7 @@
}
// Added serialVersionUID to preserve binary compatibility
+ @java.io.Serial
static final long serialVersionUID = 583241635256073760L;
}
--- a/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXNotRecognizedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXNotRecognizedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2012, 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
@@ -73,6 +73,7 @@
}
// Added serialVersionUID to preserve binary compatibility
+ @java.io.Serial
static final long serialVersionUID = 5440506620509557213L;
}
--- a/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXNotSupportedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXNotSupportedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2012, 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
@@ -73,6 +73,7 @@
}
// Added serialVersionUID to preserve binary compatibility
+ @java.io.Serial
static final long serialVersionUID = -1422818934641823846L;
}
--- a/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXParseException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/org/xml/sax/SAXParseException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2012, 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
@@ -307,6 +307,7 @@
private int columnNumber;
// Added serialVersionUID to preserve binary compatibility
+ @java.io.Serial
static final long serialVersionUID = -5651165872476709336L;
}
--- a/src/java.base/share/classes/jdk/internal/util/jar/InvalidJarIndexError.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/util/jar/InvalidJarIndexError.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2011, 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
@@ -34,6 +34,7 @@
public class InvalidJarIndexError extends Error {
+ @java.io.Serial
static final long serialVersionUID = 0L;
/**
--- a/src/java.base/share/classes/jdk/internal/util/xml/XMLStreamException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/jdk/internal/util/xml/XMLStreamException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012, 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
@@ -37,6 +37,7 @@
*/
public class XMLStreamException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
--- a/src/java.base/share/classes/sun/net/ConnectionResetException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/ConnectionResetException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 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
@@ -34,6 +34,7 @@
*/
public
class ConnectionResetException extends SocketException {
+ @java.io.Serial
private static final long serialVersionUID = -7633185991801851556L;
public ConnectionResetException(String msg) {
--- a/src/java.base/share/classes/sun/net/TelnetProtocolException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/TelnetProtocolException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -35,6 +35,7 @@
*/
public class TelnetProtocolException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 8509127047257111343L;
public TelnetProtocolException(String s) {
--- a/src/java.base/share/classes/sun/net/ftp/FtpLoginException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/ftp/FtpLoginException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -34,6 +34,7 @@
* @author Jonathan Payne
*/
public class FtpLoginException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = 2218162403237941536L;
public FtpLoginException(String s) {
--- a/src/java.base/share/classes/sun/net/ftp/FtpProtocolException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/ftp/FtpProtocolException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1994, 2009, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1994, 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
@@ -32,6 +32,7 @@
* @author Jonathan Payne
*/
public class FtpProtocolException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 5978077070276545054L;
private final FtpReplyCode code;
--- a/src/java.base/share/classes/sun/net/smtp/SmtpProtocolException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/smtp/SmtpProtocolException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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
@@ -32,6 +32,7 @@
* an SMTP session.
*/
public class SmtpProtocolException extends IOException {
+ @java.io.Serial
private static final long serialVersionUID = -7547136771133814908L;
SmtpProtocolException(String s) {
--- a/src/java.base/share/classes/sun/net/www/ApplicationLaunchException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/ApplicationLaunchException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2008, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -33,6 +33,7 @@
*/
public class ApplicationLaunchException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = -4782286141289536883L;
public ApplicationLaunchException(String reason) {
--- a/src/java.base/share/classes/sun/net/www/http/KeepAliveCache.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/http/KeepAliveCache.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 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
@@ -49,6 +49,7 @@
public class KeepAliveCache
extends HashMap<KeepAliveKey, ClientVector>
implements Runnable {
+ @java.io.Serial
private static final long serialVersionUID = -2937172892064557949L;
/* maximum # keep-alive connections to maintain at once
@@ -203,10 +204,12 @@
/*
* Do not serialize this class!
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream stream) throws IOException {
throw new NotSerializableException();
}
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
@@ -218,6 +221,7 @@
* to time them out. If > maxConns are in use, block.
*/
class ClientVector extends ArrayDeque<KeepAliveEntry> {
+ @java.io.Serial
private static final long serialVersionUID = -8680532108106489459L;
// sleep time in milliseconds, before cache clear
@@ -268,10 +272,12 @@
/*
* Do not serialize this class!
*/
+ @java.io.Serial
private void writeObject(ObjectOutputStream stream) throws IOException {
throw new NotSerializableException();
}
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException
{
--- a/src/java.base/share/classes/sun/net/www/protocol/http/AuthCacheValue.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/protocol/http/AuthCacheValue.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2013, 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
@@ -37,6 +37,7 @@
public abstract class AuthCacheValue implements Serializable {
+ @java.io.Serial
static final long serialVersionUID = 735249334068211611L;
public enum Type {
--- a/src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationInfo.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationInfo.java Thu Aug 29 16:31:34 2019 -0700
@@ -53,6 +53,7 @@
public abstract class AuthenticationInfo extends AuthCacheValue implements Cloneable {
+ @java.io.Serial
static final long serialVersionUID = -2588378268010453259L;
// Constants saying what kind of authroization this is. This determines
@@ -498,6 +499,7 @@
String s1, s2; /* used for serialization of pw */
+ @java.io.Serial
private synchronized void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
@@ -509,6 +511,7 @@
}
}
+ @java.io.Serial
private synchronized void writeObject(java.io.ObjectOutputStream s)
throws IOException
{
--- a/src/java.base/share/classes/sun/net/www/protocol/http/BasicAuthentication.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/protocol/http/BasicAuthentication.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -51,6 +51,7 @@
class BasicAuthentication extends AuthenticationInfo {
+ @java.io.Serial
private static final long serialVersionUID = 100L;
/** The authentication string for this host, port, and realm. This is
--- a/src/java.base/share/classes/sun/net/www/protocol/http/DigestAuthentication.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/protocol/http/DigestAuthentication.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -50,6 +50,7 @@
class DigestAuthentication extends AuthenticationInfo {
+ @java.io.Serial
private static final long serialVersionUID = 100L;
private String authMethod;
--- a/src/java.base/share/classes/sun/net/www/protocol/http/NegotiateAuthentication.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/net/www/protocol/http/NegotiateAuthentication.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 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
@@ -45,6 +45,7 @@
class NegotiateAuthentication extends AuthenticationInfo {
+ @java.io.Serial
private static final long serialVersionUID = 100L;
private static final PlatformLogger logger = HttpURLConnection.getHttpLogger();
--- a/src/java.base/share/classes/sun/nio/ch/Reflect.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/nio/ch/Reflect.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2014, 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
@@ -36,6 +36,7 @@
private Reflect() { }
private static class ReflectionError extends Error {
+ @java.io.Serial
private static final long serialVersionUID = -8659519328078164097L;
ReflectionError(Throwable x) {
super(x);
--- a/src/java.base/share/classes/sun/reflect/annotation/AnnotationInvocationHandler.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/reflect/annotation/AnnotationInvocationHandler.java Thu Aug 29 16:31:34 2019 -0700
@@ -41,6 +41,7 @@
* @since 1.5
*/
class AnnotationInvocationHandler implements InvocationHandler, Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 6182022883658399397L;
private final Class<? extends Annotation> type;
private final Map<String, Object> memberValues;
@@ -603,6 +604,7 @@
return Arrays.hashCode((Object[]) value);
}
+ @java.io.Serial
private void readObject(java.io.ObjectInputStream s)
throws java.io.IOException, ClassNotFoundException {
ObjectInputStream.GetField fields = s.readFields();
--- a/src/java.base/share/classes/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/reflect/annotation/AnnotationTypeMismatchExceptionProxy.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -34,6 +34,7 @@
* @since 1.5
*/
class AnnotationTypeMismatchExceptionProxy extends ExceptionProxy {
+ @java.io.Serial
private static final long serialVersionUID = 7844069490309503934L;
private Method member;
private final String foundType;
--- a/src/java.base/share/classes/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/reflect/annotation/EnumConstantNotPresentExceptionProxy.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -32,6 +32,7 @@
* @since 1.5
*/
public class EnumConstantNotPresentExceptionProxy extends ExceptionProxy {
+ @java.io.Serial
private static final long serialVersionUID = -604662101303187330L;
final Class<? extends Enum<?>> enumType;
final String constName;
--- a/src/java.base/share/classes/sun/reflect/annotation/ExceptionProxy.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/reflect/annotation/ExceptionProxy.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -37,6 +37,7 @@
* @since 1.5
*/
public abstract class ExceptionProxy implements java.io.Serializable {
+ @java.io.Serial
private static final long serialVersionUID = 7241930048386631401L;
protected abstract RuntimeException generateException();
}
--- a/src/java.base/share/classes/sun/reflect/annotation/TypeNotPresentExceptionProxy.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/reflect/annotation/TypeNotPresentExceptionProxy.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 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
@@ -33,6 +33,7 @@
* @since 1.5
*/
public class TypeNotPresentExceptionProxy extends ExceptionProxy {
+ @java.io.Serial
private static final long serialVersionUID = 5565925172427947573L;
final String typeName;
final Throwable cause;
--- a/src/java.base/share/classes/sun/reflect/generics/reflectiveObjects/NotImplementedException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/reflect/generics/reflectiveObjects/NotImplementedException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003, 2011, 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
@@ -27,5 +27,6 @@
/** Temporary class used to indicate missing functionality */
public class NotImplementedException extends RuntimeException {
+ @java.io.Serial
private static final long serialVersionUID = -9177857708926624790L;
}
--- a/src/java.base/share/classes/sun/util/BuddhistCalendar.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/util/BuddhistCalendar.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2012, 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
@@ -39,6 +39,7 @@
// Class Variables
//////////////////
+ @java.io.Serial
private static final long serialVersionUID = -8527488697350388578L;
private static final int BUDDHIST_YEAR_OFFSET = 543;
@@ -254,6 +255,7 @@
private transient int yearOffset = BUDDHIST_YEAR_OFFSET;
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
--- a/src/java.base/share/classes/sun/util/calendar/ZoneInfo.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/util/calendar/ZoneInfo.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2013, 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
@@ -163,6 +163,7 @@
*/
private transient boolean dirty = false;
+ @java.io.Serial
private static final long serialVersionUID = 2653134537216586139L;
/**
@@ -726,6 +727,7 @@
return ZoneInfoFile.getAliasMap();
}
+ @java.io.Serial
private void readObject(ObjectInputStream stream)
throws IOException, ClassNotFoundException {
stream.defaultReadObject();
--- a/src/java.base/share/classes/sun/util/locale/LocaleSyntaxException.java Thu Aug 29 18:52:30 2019 -0400
+++ b/src/java.base/share/classes/sun/util/locale/LocaleSyntaxException.java Thu Aug 29 16:31:34 2019 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -33,6 +33,7 @@
public class LocaleSyntaxException extends Exception {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
private int index = -1;