You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by vd...@apache.org on 2003/11/20 09:38:25 UTC
cvs commit: xml-security/src/org/apache/xml/security/keys/content KeyValue.java
vdkoogh 2003/11/20 00:38:25
Modified: src/org/apache/xml/security/keys/content KeyValue.java
Log:
Organised imports and removed unnecessary casts
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.8 +5 -6 xml-security/src/org/apache/xml/security/keys/content/KeyValue.java
Index: KeyValue.java
===================================================================
RCS file: /home/cvs/xml-security/src/org/apache/xml/security/keys/content/KeyValue.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- KeyValue.java 29 Apr 2003 21:36:54 -0000 1.7
+++ KeyValue.java 20 Nov 2003 08:38:25 -0000 1.8
@@ -60,7 +60,6 @@
-import java.security.Key;
import java.security.PublicKey;
import javax.xml.transform.TransformerException;
@@ -151,14 +150,14 @@
XMLUtils.addReturnToElement(this._constructionElement);
if (JavaUtils.implementsInterface(
- (Object) pk, "java.security.interfaces.DSAPublicKey")) {
- DSAKeyValue dsa = new DSAKeyValue(this._doc, (Key) pk);
+ pk, "java.security.interfaces.DSAPublicKey")) {
+ DSAKeyValue dsa = new DSAKeyValue(this._doc, pk);
this._constructionElement.appendChild(dsa.getElement());
XMLUtils.addReturnToElement(this._constructionElement);
} else if (JavaUtils.implementsInterface(
- (Object) pk, "java.security.interfaces.RSAPublicKey")) {
- RSAKeyValue rsa = new RSAKeyValue(this._doc, (Key) pk);
+ pk, "java.security.interfaces.RSAPublicKey")) {
+ RSAKeyValue rsa = new RSAKeyValue(this._doc, pk);
this._constructionElement.appendChild(rsa.getElement());
XMLUtils.addReturnToElement(this._constructionElement);