< prev index next >

## src/java.base/share/classes/java/security/CodeSigner.java

Print this page

    @@ -1,7 +1,7 @@
      /*
    -  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
    +  * Copyright (c) 2003, 2021, 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
       * under the terms of the GNU General Public License version 2 only, as
       * published by the Free Software Foundation.  Oracle designates this

    @@ -46,11 +46,11 @@
           *
           * @serial
           */
          private CertPath signerCertPath;

    -     /*
    +     /**
           * The signature timestamp.
           *
           * @serial
           */
          private Timestamp timestamp;

    @@ -163,11 +163,18 @@
              }
              sb.append(")");
              return sb.toString();
          }

    -     // Explicitly reset hash code value to -1
    +     /**
    +      * Restores the state of this object from the stream, and explicitly
    +      * reset hash code value to -1.
    +      *
    +      * @param  ois the {@code ObjectInputStream} from which data is read
    +      * @throws IOException if an I/O error occurs
    +      * @throws ClassNotFoundException if a serialized class cannot be loaded
    +      */
          @java.io.Serial
          private void readObject(ObjectInputStream ois)
              throws IOException, ClassNotFoundException {
           ois.defaultReadObject();
           myhash = -1;

< prev index next >