summaryrefslogtreecommitdiff
path: root/gnu/javax/net/ssl/SSLCipherSuite.java
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2015-06-19 16:04:59 +0100
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2015-06-19 16:04:59 +0100
commit6bc8d84e4b0527f680b78a9a0c808cda74d4933d (patch)
tree835056047b4bde36f8d67b1656fa8dab8f6e1c6d /gnu/javax/net/ssl/SSLCipherSuite.java
parent591da8d224ab68474c4600d42fc74bafe974303a (diff)
downloadclasspath-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.java10
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 ()