aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/security/DummyMessageDigest.java
diff options
context:
space:
mode:
authorCasey Marshall <csm@gnu.org>2004-08-30 10:25:38 +0000
committerAndreas Tobler <andreast@gcc.gnu.org>2004-08-30 12:25:38 +0200
commit28839b70d0fa8703311d39ca2ce1f8a17b8d20d6 (patch)
treed5939b84cb5fa05f18e3b26411d09f41525bcafd /libjava/java/security/DummyMessageDigest.java
parentce521a9c85bfb120a9904293897a256e83477eca (diff)
downloadgcc-28839b70d0fa8703311d39ca2ce1f8a17b8d20d6.zip
gcc-28839b70d0fa8703311d39ca2ce1f8a17b8d20d6.tar.gz
gcc-28839b70d0fa8703311d39ca2ce1f8a17b8d20d6.tar.bz2
DummyKeyPairGenerator.java (clone): Removed useless instanceof check.
2004-08-30 Casey Marshall <csm@gnu.org> * java/security/DummyKeyPairGenerator.java (clone): Removed useless instanceof check. * java/security/DummyMessageDigest.java (clone): Likewise. * java/security/DummySignature.java (clone): Likewise. * java/security/MessageDigest.java (clone): Remove useless instanceof check. * java/security/MessageDigestSpi.java (clone): Likewise. * java/security/Signature.java (clone): Provide meaningful implementation. * java/security/SignatureSpi.java (clone): Likewise. From-SVN: r86755
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;
}