diff options
author | Adam Young <ayoung@redhat.com> | 2011-11-15 12:32:34 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-12-22 16:25:45 -0500 |
commit | 8286efd58e3b0403bd1e72ab714f79fe9af4d653 (patch) | |
tree | 5070aeea7f89e034e220f9aa6cbefdda6a958098 | |
parent | 1b30a94537f073b43f809b1c8a623e40ca968b2c (diff) | |
download | pki-8286efd58e3b0403bd1e72ab714f79fe9af4d653.tar.gz pki-8286efd58e3b0403bd1e72ab714f79fe9af4d653.tar.xz pki-8286efd58e3b0403bd1e72ab714f79fe9af4d653.zip |
type safety in CMSCRLExtensions and PublisherProcessor
-rw-r--r-- | pki/base/ca/src/com/netscape/ca/CMSCRLExtensions.java | 2 | ||||
-rw-r--r-- | pki/base/common/src/com/netscape/cmscore/ldap/PublisherProcessor.java | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pki/base/ca/src/com/netscape/ca/CMSCRLExtensions.java b/pki/base/ca/src/com/netscape/ca/CMSCRLExtensions.java index 51d034179..d97c12c4a 100644 --- a/pki/base/ca/src/com/netscape/ca/CMSCRLExtensions.java +++ b/pki/base/ca/src/com/netscape/ca/CMSCRLExtensions.java @@ -357,6 +357,7 @@ public class CMSCRLExtensions implements ICMSCRLExtensions { mCRLExtensionClassNames.put(extName, extClass); try { + @SuppressWarnings("unchecked") Class<ICMSCRLExtension> crlExtClass = (Class<ICMSCRLExtension>) Class.forName(extClass); if (crlExtClass != null) { @@ -446,6 +447,7 @@ public class CMSCRLExtensions implements ICMSCRLExtensions { String name = mCRLExtensionClassNames.get(extName); try { + @SuppressWarnings("unchecked") Class<ICMSCRLExtension > extClass = (Class<ICMSCRLExtension>) Class.forName(name); if (extClass != null) { diff --git a/pki/base/common/src/com/netscape/cmscore/ldap/PublisherProcessor.java b/pki/base/common/src/com/netscape/cmscore/ldap/PublisherProcessor.java index 1477e57b0..57e39aefe 100644 --- a/pki/base/common/src/com/netscape/cmscore/ldap/PublisherProcessor.java +++ b/pki/base/common/src/com/netscape/cmscore/ldap/PublisherProcessor.java @@ -1361,10 +1361,11 @@ public class PublisherProcessor implements try { if (dirdn instanceof Vector) { - Vector<?> dirdnVector = (Vector<?>)dirdn; + @SuppressWarnings("unchecked") + Vector<String> dirdnVector = (Vector<String>)dirdn; int n = dirdnVector.size(); for (int i = 0; i < n; i++) { - publisher.publish(conn, (String)dirdnVector.elementAt(i), cert); + publisher.publish(conn, dirdnVector.elementAt(i), cert); } } else if (dirdn instanceof String || publisher instanceof com.netscape.cms.publish.publishers.FileBasedPublisher) { |