diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-06-19 16:04:59 +0100 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-06-19 16:04:59 +0100 |
commit | 6bc8d84e4b0527f680b78a9a0c808cda74d4933d (patch) | |
tree | 835056047b4bde36f8d67b1656fa8dab8f6e1c6d /gnu/javax/net/ssl/SSLCipherSuite.java | |
parent | 591da8d224ab68474c4600d42fc74bafe974303a (diff) | |
download | classpath-6bc8d84e4b0527f680b78a9a0c808cda74d4933d.tar.gz |
Mention PR66376.
2015-06-19 Andrew John Hughes <gnu_andrew@member.fsf.org>
* NEWS: Mention PR66376.
Diffstat (limited to 'gnu/javax/net/ssl/SSLCipherSuite.java')
-rw-r--r-- | gnu/javax/net/ssl/SSLCipherSuite.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gnu/javax/net/ssl/SSLCipherSuite.java b/gnu/javax/net/ssl/SSLCipherSuite.java index 80068e5cb..d0dbba7e1 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 Free Software Foundation, Inc. + Copyright (C) 2006, 2015 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 = (byte[]) id.clone (); + this.id = id.clone (); this.version = version; } @@ -111,9 +111,7 @@ public abstract class SSLCipherSuite catch (InvocationTargetException ite) { // XXX - NoSuchAlgorithmException nsae = new NoSuchAlgorithmException (name); - nsae.initCause (ite); - throw nsae; + throw new NoSuchAlgorithmException (name, ite); } return suite; } @@ -125,7 +123,7 @@ public abstract class SSLCipherSuite public final byte[] getId () { - return (byte[]) id.clone (); + return id.clone (); } public final Provider getProvider () |