src/java.base/share/classes/com/sun/crypto/provider/DESKey.java
changeset 57950 4612a3cfb927
parent 48560 46e99460e8c9
--- a/src/java.base/share/classes/com/sun/crypto/provider/DESKey.java	Thu Aug 29 10:09:27 2019 -0700
+++ b/src/java.base/share/classes/com/sun/crypto/provider/DESKey.java	Thu Aug 29 10:52:21 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
@@ -43,6 +43,7 @@
 
 final class DESKey implements SecretKey {
 
+    @java.io.Serial
     static final long serialVersionUID = 7724971015953279128L;
 
     private byte[] key;
@@ -136,6 +137,7 @@
      * readObject is called to restore the state of this key from
      * a stream.
      */
+    @java.io.Serial
     private void readObject(java.io.ObjectInputStream s)
          throws java.io.IOException, ClassNotFoundException
     {
@@ -151,6 +153,7 @@
      * @throws java.io.ObjectStreamException if a new object representing
      * this DES key could not be created
      */
+    @java.io.Serial
     private Object writeReplace() throws java.io.ObjectStreamException {
         return new KeyRep(KeyRep.Type.SECRET,
                         getAlgorithm(),