aboutsummaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/util/Date.java
diff options
context:
space:
mode:
authorJoe Darcy <darcy@openjdk.org>2019-08-29 16:31:34 -0700
committerJoe Darcy <darcy@openjdk.org>2019-08-29 16:31:34 -0700
commit9d764ee48ee7c2e7be7a25aee2ed7bed2fcd2000 (patch)
tree0de856dc2c4c03d6aa087666b58c34f88b8b553b /src/java.base/share/classes/java/util/Date.java
parent6d064a747e3d35cc51d0b57800ea0544f0545ca3 (diff)
downloadopenjdk-9d764ee48ee7c2e7be7a25aee2ed7bed2fcd2000.tar.gz
openjdk-9d764ee48ee7c2e7be7a25aee2ed7bed2fcd2000.zip
8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
Diffstat (limited to 'src/java.base/share/classes/java/util/Date.java')
-rw-r--r--src/java.base/share/classes/java/util/Date.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/util/Date.java b/src/java.base/share/classes/java/util/Date.java
index cd246880d7d..671d710c671 100644
--- a/src/java.base/share/classes/java/util/Date.java
+++ b/src/java.base/share/classes/java/util/Date.java
@@ -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 @@ public class Date
* 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 @@ public class Date
* 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 @@ public class Date
/**
* Reconstitute this object from a stream (i.e., deserialize it).
*/
+ @java.io.Serial
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{