aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/security/DummyMessageDigest.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/security/DummyMessageDigest.java')
-rw-r--r--libjava/java/security/DummyMessageDigest.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/java/security/DummyMessageDigest.java b/libjava/java/security/DummyMessageDigest.java
index d7e769d..703884f 100644
--- a/libjava/java/security/DummyMessageDigest.java
+++ b/libjava/java/security/DummyMessageDigest.java
@@ -49,11 +49,8 @@ final class DummyMessageDigest extends MessageDigest
public Object clone() throws CloneNotSupportedException
{
- if (!(mdSpi instanceof Cloneable))
- throw new CloneNotSupportedException();
-
MessageDigest result = new DummyMessageDigest
- ((MessageDigestSpi) mdSpi.clone(), this.getAlgorithm());
+ ((MessageDigestSpi) mdSpi.clone(), this.getAlgorithm());
result.provider = this.getProvider();
return result;
}