diff options
author | Adam Young <ayoung@redhat.com> | 2011-11-18 13:56:30 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2012-01-04 11:24:40 -0500 |
commit | 04de68d946118b7c56691da707a01334799f17e8 (patch) | |
tree | d3ab1ebfe2363a2e96d32afa69c63b1a07b50263 /pki/base/common/src/com/netscape/certsrv/dbs | |
parent | 6373ddf8fdb15ecd841735910da728e55ad9582a (diff) | |
download | pki-04de68d946118b7c56691da707a01334799f17e8.tar.gz pki-04de68d946118b7c56691da707a01334799f17e8.tar.xz pki-04de68d946118b7c56691da707a01334799f17e8.zip |
typesafety certserv and cmscore
Using interface instead of implementing class
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/dbs')
5 files changed, 6 insertions, 6 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/IDBAttrMapper.java b/pki/base/common/src/com/netscape/certsrv/dbs/IDBAttrMapper.java index 7d851b747..173537d6b 100644 --- a/pki/base/common/src/com/netscape/certsrv/dbs/IDBAttrMapper.java +++ b/pki/base/common/src/com/netscape/certsrv/dbs/IDBAttrMapper.java @@ -42,7 +42,7 @@ public interface IDBAttrMapper { * * @return a list of supported attribute names */ - public Enumeration getSupportedLDAPAttributeNames(); + public Enumeration<String> getSupportedLDAPAttributeNames(); /** * Maps object attribute into LDAP attributes. diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/IDBObj.java b/pki/base/common/src/com/netscape/certsrv/dbs/IDBObj.java index 4be6c3409..ab1ce0a44 100644 --- a/pki/base/common/src/com/netscape/certsrv/dbs/IDBObj.java +++ b/pki/base/common/src/com/netscape/certsrv/dbs/IDBObj.java @@ -39,5 +39,5 @@ public interface IDBObj extends IAttrSet { * * @return a list of serializable attribute names */ - public Enumeration getSerializableAttrNames(); + public Enumeration<String> getSerializableAttrNames(); } diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/IDBSearchResults.java b/pki/base/common/src/com/netscape/certsrv/dbs/IDBSearchResults.java index ab90866b1..9f15b8082 100644 --- a/pki/base/common/src/com/netscape/certsrv/dbs/IDBSearchResults.java +++ b/pki/base/common/src/com/netscape/certsrv/dbs/IDBSearchResults.java @@ -28,7 +28,7 @@ import java.util.Enumeration; * * @version $Revision$, $Date$ */ -public interface IDBSearchResults extends Enumeration { +public interface IDBSearchResults extends Enumeration<Object> { /** * Checks if any element is available. diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/ModificationSet.java b/pki/base/common/src/com/netscape/certsrv/dbs/ModificationSet.java index 4a5592c0b..b737f861d 100644 --- a/pki/base/common/src/com/netscape/certsrv/dbs/ModificationSet.java +++ b/pki/base/common/src/com/netscape/certsrv/dbs/ModificationSet.java @@ -33,7 +33,7 @@ public class ModificationSet { /** * A list of modifications */ - private Vector mods = new Vector(); + private Vector<Modification> mods = new Vector<Modification>(); /** * Constructs modification set. @@ -57,7 +57,7 @@ public class ModificationSet { * * @return a list of Modifications */ - public Enumeration getModifications() { + public Enumeration<Modification> getModifications() { return mods.elements(); } } diff --git a/pki/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecordList.java b/pki/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecordList.java index 2bc9f57b9..5da239452 100644 --- a/pki/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecordList.java +++ b/pki/base/common/src/com/netscape/certsrv/dbs/keydb/IKeyRecordList.java @@ -46,6 +46,6 @@ public interface IKeyRecordList { * @return key records * @exception EBaseException failed to retrieve key records */ - public Enumeration getKeyRecords(int startidx, int endidx) + public Enumeration<IKeyRecord> getKeyRecords(int startidx, int endidx) throws EBaseException; } |