src/java.base/share/classes/sun/security/ssl/HandshakeHash.java
changeset 53563 a4b7ea85d668
parent 52928 d59955700113
child 53734 cb1642ccc732
equal deleted inserted replaced
53559:1ae0b76bb5df 53563:a4b7ea85d668
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   244         CacheOnlyHash copy() {
   244         CacheOnlyHash copy() {
   245             CacheOnlyHash result = new CacheOnlyHash();
   245             CacheOnlyHash result = new CacheOnlyHash();
   246             try {
   246             try {
   247                 baos.writeTo(result.baos);
   247                 baos.writeTo(result.baos);
   248             } catch (IOException ex) {
   248             } catch (IOException ex) {
   249                 throw new RuntimeException("unable to to clone hash state");
   249                 throw new RuntimeException("unable to clone hash state");
   250             }
   250             }
   251             return result;
   251             return result;
   252         }
   252         }
   253     }
   253     }
   254 
   254