diff options
| author | Jack Magne <jmagne@dhcp-16-213.sjc.redhat.com> | 2013-09-10 14:24:08 -0700 |
|---|---|---|
| committer | Christina Fu <cfu@redhat.com> | 2013-09-10 15:12:41 -0700 |
| commit | 9c3cc5e955e9101ffb4e59282d548105dcc42664 (patch) | |
| tree | 29978bfd7d7f91062f85e1c5d844db88ce339cf2 /base/common/src/com | |
| parent | 4db22ab18f4ff17c1dd6dd5b9fa0227016eb7287 (diff) | |
| download | pki-9c3cc5e955e9101ffb4e59282d548105dcc42664.tar.gz pki-9c3cc5e955e9101ffb4e59282d548105dcc42664.tar.xz pki-9c3cc5e955e9101ffb4e59282d548105dcc42664.zip | |
Patch to get rid of introduced warnings.
Diffstat (limited to 'base/common/src/com')
| -rw-r--r-- | base/common/src/com/netscape/cms/profile/constraint/KeyConstraint.java | 4 | ||||
| -rw-r--r-- | base/common/src/com/netscape/cms/profile/def/UserKeyDefault.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/base/common/src/com/netscape/cms/profile/constraint/KeyConstraint.java b/base/common/src/com/netscape/cms/profile/constraint/KeyConstraint.java index 3e07ca307..3a7d09d5f 100644 --- a/base/common/src/com/netscape/cms/profile/constraint/KeyConstraint.java +++ b/base/common/src/com/netscape/cms/profile/constraint/KeyConstraint.java @@ -49,7 +49,7 @@ import com.netscape.cmsutil.crypto.CryptoUtil; * * @version $Revision$, $Date$ */ -@SuppressWarnings("serial") + public class KeyConstraint extends EnrollConstraint { public static final String CONFIG_KEY_TYPE = "keyType"; // (EC, RSA) @@ -148,7 +148,7 @@ public class KeyConstraint extends EnrollConstraint { value)); } - Vector vect = CryptoUtil.getECKeyCurve(key); + Vector<?> vect = CryptoUtil.getECKeyCurve(key); boolean curveFound = false; diff --git a/base/common/src/com/netscape/cms/profile/def/UserKeyDefault.java b/base/common/src/com/netscape/cms/profile/def/UserKeyDefault.java index 62b8e6471..4531e0fe5 100644 --- a/base/common/src/com/netscape/cms/profile/def/UserKeyDefault.java +++ b/base/common/src/com/netscape/cms/profile/def/UserKeyDefault.java @@ -147,7 +147,7 @@ public class UserKeyDefault extends EnrollDefault { if (k.getAlgorithm().equals("RSA")) { return Integer.toString(getRSAKeyLen(k)); } else if (k.getAlgorithm().equals("EC")) { - Vector vect = CryptoUtil.getECKeyCurve(k); + Vector<String> vect = CryptoUtil.getECKeyCurve(k); if (vect != null) return vect.toString(); else |
