From cb0199f5f65be09b21a26385a28cf4a94a55c445 Mon Sep 17 00:00:00 2001 From: mkoch Date: Thu, 18 Nov 2004 15:26:45 +0000 Subject: 2004-11-18 Jeroen Frijters * java/lang/StackTraceElement.java: Made final. * java/nio/channels/Channels.java: Added private constructor. * java/rmi/Naming.java: Added private constructor. * java/rmi/registry/LocateRegistry.java: Added private constructor. * java/rmi/server/RMIClassLoader.java: Added private constructor. * java/security/KeyPairGeneratorSpi.java (clone): Made protected and simplified implementation. * java/text/DateFormat.java (allFields): Made package accessible. * java/text/DecimalFormat.java (formatInternal): Made private. * java/text/Format.java (formatInternal): Made private. * java/util/logging/Handler.java: Made constructor protected. * java/util/regex/Matcher.java: Made final. * java/util/regex/Pattern.java: Made final. * javax/crypto/CipherInputStream.java (mark): Corrected mark parameter type (from long to int). * javax/crypto/ExemptionMechanism.java (finalize): Added. * javax/crypto/Mac.java (getMacLength): Made final. (clone): Made final. * javax/imageio/ImageIO.java: Added private constructor. * javax/imageio/stream/ImageInputStreamImpl.java (checkClosed): Made final. * javax/net/ssl/SSLPermission.java: Made final. * javax/print/DocFlavor.java (hostEncoding): Added work-around to prevent the field from being a compile time constant. * javax/print/attribute/AttributeSetUtilities.java: Added private constructor. (UnmodifiableDocAttributeSet): Made private. (UnmodifiablePrintJobAttributeSet): Made private. (UnmodifiablePrintRequestAttributeSet): Made private. (UnmodifiablePrintServiceAttributeSet): Made private. (SynchronizedAttributeSet): Made private. (SynchronizedDocAttributeSet): Made private. (SynchronizedPrintJobAttributeSet): Made private. (SynchronizedPrintRequestAttributeSet): Made private. (SynchronizedPrintServiceAttributeSet): Made private. * javax/security/auth/PrivateCredentialPermission.java: Made final. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90866 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/security/KeyPairGeneratorSpi.java | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'libjava/java/security/KeyPairGeneratorSpi.java') diff --git a/libjava/java/security/KeyPairGeneratorSpi.java b/libjava/java/security/KeyPairGeneratorSpi.java index 735dd6498f9..07de178cfd5 100644 --- a/libjava/java/security/KeyPairGeneratorSpi.java +++ b/libjava/java/security/KeyPairGeneratorSpi.java @@ -92,18 +92,11 @@ public abstract class KeyPairGeneratorSpi public abstract KeyPair generateKeyPair(); /** - Returns a clone of this class. - - If cloning is not supported, then by default the class throws a - CloneNotSupportedException. The MessageDigestSpi provider - implementation has to overload this class in order to be - cloneable. + * We override clone here to make it accessible for use by + * DummyKeyPairGenerator. */ - public Object clone() throws CloneNotSupportedException + protected Object clone() throws CloneNotSupportedException { - if (this instanceof Cloneable) - return super.clone(); - else - throw new CloneNotSupportedException(); + return super.clone(); } } -- cgit v1.2.3