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> | 2015-08-13 03:00:30 +0100 |
commit | 1f7a4b1f0727b2d8a29498d78e57309f0bd87a6c (patch) | |
tree | 7a185a8e01210984dcc077866f0c662392236466 /gnu/javax/net/ssl/SSLCipherSuite.java | |
parent | 6bc8d84e4b0527f680b78a9a0c808cda74d4933d (diff) | |
download | classpath-1f7a4b1f0727b2d8a29498d78e57309f0bd87a6c.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 () |