< prev index next >

## src/java.base/share/classes/javax/crypto/SealedObject.java

Print this page

    *** 1,7 ***
      /*
    !  * 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
       * under the terms of the GNU General Public License version 2 only, as
       * published by the Free Software Foundation.  Oracle designates this
    --- 1,7 ---
      /*
    !  * Copyright (c) 1997, 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

    *** 419,12 ***
              }
          }

          /**
           * Restores the state of the SealedObject from a stream.
           * @param s the object input stream.
    !      * @exception NullPointerException if s is null.
           */
          @java.io.Serial
          private void readObject(java.io.ObjectInputStream s)
              throws java.io.IOException, ClassNotFoundException
          {
    --- 419,15 ---
              }
          }

          /**
           * Restores the state of the SealedObject from a stream.
    +      *
           * @param s the object input stream.
    !      * @throws IOException if an I/O error occurs
    +      * @throws ClassNotFoundException if a serialized class cannot be loaded
    +      * @throws NullPointerException if s is null.
           */
          @java.io.Serial
          private void readObject(java.io.ObjectInputStream s)
              throws java.io.IOException, ClassNotFoundException
          {

< prev index next >