mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
6d064a747e
commit
9d764ee48e
315 changed files with 880 additions and 254 deletions
|
@ -441,6 +441,7 @@ public class SimpleDateFormat extends DateFormat {
|
|||
|
||||
// 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 @@ public class SimpleDateFormat extends DateFormat {
|
|||
*
|
||||
* @exception InvalidObjectException if the pattern is invalid
|
||||
*/
|
||||
@java.io.Serial
|
||||
private void readObject(ObjectInputStream stream)
|
||||
throws IOException, ClassNotFoundException {
|
||||
stream.defaultReadObject();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue