diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-08-13 03:00:30 +0100 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2016-02-16 02:00:13 +0000 |
commit | 515871961ff934601b190bb32bf4fc42ddcf7e4d (patch) | |
tree | bd01845fb966a540e550d0755ac8bb4ca90621c5 /gnu/javax/net/ssl/SSLCipherSuite.java | |
parent | 5f98982eadb3c595d86d4af2825902a3ccf8f581 (diff) | |
download | classpath-515871961ff934601b190bb32bf4fc42ddcf7e4d.tar.gz |
Revert undocumented changes accidentally included with last commit.
Diffstat (limited to 'gnu/javax/net/ssl/SSLCipherSuite.java')
-rw-r--r-- | gnu/javax/net/ssl/SSLCipherSuite.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/javax/net/ssl/SSLCipherSuite.java b/gnu/javax/net/ssl/SSLCipherSuite.java index d0dbba7e1..80068e5cb 100644 --- a/gnu/javax/net/ssl/SSLCipherSuite.java +++ b/gnu/javax/net/ssl/SSLCipherSuite.java @@ -1,5 +1,5 @@ /* SSLCipherSuite.java -- an SSL cipher suite. - Copyright (C) 2006, 2015 Free Software Foundation, Inc. + Copyright (C) 2006 Free Software Foundation, Inc. This file is a part of GNU Classpath. @@ -63,7 +63,7 @@ public abstract class SSLCipherSuite this.algorithm = algorithm; if (id.length != 2) throw new IllegalArgumentException ("cipher suite ID must be two bytes"); - this.id = id.clone (); + this.id = (byte[]) id.clone (); this.version = version; } @@ -111,7 +111,9 @@ public abstract class SSLCipherSuite catch (InvocationTargetException ite) { // XXX - throw new NoSuchAlgorithmException (name, ite); + NoSuchAlgorithmException nsae = new NoSuchAlgorithmException (name); + nsae.initCause (ite); + throw nsae; } return suite; } @@ -123,7 +125,7 @@ public abstract class SSLCipherSuite public final byte[] getId () { - return id.clone (); + return (byte[]) id.clone (); } public final Provider getProvider () |