--- 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);