summaryrefslogtreecommitdiff
path: root/gnu/javax/net/ssl/SSLCipherSuite.java
diff options
context:
space:
mode:
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 ()