diff options
author | Adam Young <ayoung@redhat.com> | 2011-12-05 17:15:56 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-12-07 12:30:49 -0500 |
commit | 948bfab248d4cb1faf00c5999f8a55580e89999f (patch) | |
tree | ff8f037c8841291b27cb7841d1ed4076928aa04b /pki/base/common/src/com/netscape/cms | |
parent | ec45d246502d8dedb59a97c4599d26657c464e56 (diff) | |
download | pki-948bfab248d4cb1faf00c5999f8a55580e89999f.tar.gz pki-948bfab248d4cb1faf00c5999f8a55580e89999f.tar.xz pki-948bfab248d4cb1faf00c5999f8a55580e89999f.zip |
TreeSet
ArraySet and AttributeNameEnumeration both were not updated to handfle Generics.
Neither are really needed, and are likely to introduce errors.
ArraySet can be safely replaced by TreeSet.
TreeSet provides a stricter ordering constraint than ArraySet did.
This will not hurt anything, and may actually be closer to the desired behavior
AttributeNameEnumeration was a thin wrapper around Vector.
It has been replaced with Vector<String>
In addition, this patch cleans up the Type safety in of the collections used in the related files.
removed files from cmake
Removed custom collection files
Supressed watnings generated by the clone method.
Diffstat (limited to 'pki/base/common/src/com/netscape/cms')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/publish/publishers/FileBasedPublisher.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pki/base/common/src/com/netscape/cms/publish/publishers/FileBasedPublisher.java b/pki/base/common/src/com/netscape/cms/publish/publishers/FileBasedPublisher.java index 1d3a949ec..f0154e446 100644 --- a/pki/base/common/src/com/netscape/cms/publish/publishers/FileBasedPublisher.java +++ b/pki/base/common/src/com/netscape/cms/publish/publishers/FileBasedPublisher.java @@ -115,8 +115,8 @@ public class FileBasedPublisher implements ILdapPublisher, IExtendedPluginInfo { /** * Returns the current instance parameters. */ - public Vector getInstanceParams() { - Vector v = new Vector(); + public Vector<String> getInstanceParams() { + Vector<String> v = new Vector<String>(); String dir = ""; String ext = ""; @@ -155,8 +155,8 @@ public class FileBasedPublisher implements ILdapPublisher, IExtendedPluginInfo { /** * Returns the initial default parameters. */ - public Vector getDefaultParams() { - Vector v = new Vector(); + public Vector<String> getDefaultParams() { + Vector<String> v = new Vector<String>(); v.addElement(PROP_DIR+"="); v.addElement(PROP_DER+"=true"); |