summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-11-18 14:39:59 -0500
committerAdam Young <ayoung@redhat.com>2012-01-04 11:24:45 -0500
commit9c3c8ee12bfc4b0bd3a6a57382f90d7c0ff8abbb (patch)
treed7f2dc5b6a4e01493428d487b9491aed2e7b461f /pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java
parente06776464042c557f2a66cbca874507e2be521a8 (diff)
downloadpki-9c3c8ee12bfc4b0bd3a6a57382f90d7c0ff8abbb.tar.gz
pki-9c3c8ee12bfc4b0bd3a6a57382f90d7c0ff8abbb.tar.xz
pki-9c3c8ee12bfc4b0bd3a6a57382f90d7c0ff8abbb.zip
typesafety db and logging
Diffstat (limited to 'pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java')
-rw-r--r--pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java b/pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java
index 74094871..93f9f35c 100644
--- a/pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java
+++ b/pki/base/common/src/com/netscape/cmscore/dbs/CertificateRepository.java
@@ -77,7 +77,7 @@ public class CertificateRepository extends Repository
private boolean mSkipIfInconsistent = false;
private int mCertStatusUpdateInterval = 0;
- private Hashtable mCRLIssuingPoints = new Hashtable();
+ private Hashtable<String, ICRLIssuingPoint> mCRLIssuingPoints = new Hashtable<String, ICRLIssuingPoint>();
private int mTransitMaxRecords = 1000000;
private int mTransitRecordPageSize = 200;
@@ -134,7 +134,6 @@ public class CertificateRepository extends Repository
}
int ltSize = recList.getSizeBeforeJumpTo();
- Vector cList = new Vector(ltSize);
CMS.debug("CertificateRepository:getLastSerialNumberInRange: ltSize " + ltSize);
@@ -183,7 +182,7 @@ public class CertificateRepository extends Repository
ICertRecordList list =findCertRecordsInList(filter,
null, "serialno", 10);
int size = list.getSize();
- Enumeration e = list.getCertRecords(0, size - 1);
+ Enumeration<ICertRecord> e = list.getCertRecords(0, size - 1);
while (e.hasMoreElements()) {
CertRecord rec = (CertRecord) e.nextElement();
BigInteger cur = rec.getSerialNumber();
@@ -425,7 +424,7 @@ public class CertificateRepository extends Repository
CertRecord curRec = null;
int i;
- Object obj = null;
+ ICertRecord obj = null;
for (i = 0; i < ltSize; i++) {
obj = recList.getCertRecord(i);
@@ -891,7 +890,7 @@ public class CertificateRepository extends Repository
CertRecordList list = null;
try {
- DBVirtualList vlist = (DBVirtualList) s.createVirtualList(getDN(), filter, attrs,
+ DBVirtualList<ICertRecord> vlist = (DBVirtualList<ICertRecord>) s.createVirtualList(getDN(), filter, attrs,
sortKey, pageSize);
list = new CertRecordList(vlist);