summaryrefslogtreecommitdiffstats
path: root/base/ca/src/com
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-09 13:56:59 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-12 10:16:22 -0500
commit7d88f4ee050856b8fef5f260cfe1b3aeec201fda (patch)
tree9d0b80dcbcc63ccb83d32995376168dcd086bab9 /base/ca/src/com
parent3f24e55923fc986af4c6a08b2b8d45704a905627 (diff)
Removed unused private fields.
Most of unused private fields have been removed because they generate warnings in Eclipse. Some are kept because it might be useful later. Ticket #139
Diffstat (limited to 'base/ca/src/com')
-rw-r--r--base/ca/src/com/netscape/ca/CMSCRLExtensions.java3
-rw-r--r--base/ca/src/com/netscape/ca/CRLIssuingPoint.java11
-rw-r--r--base/ca/src/com/netscape/ca/SigningUnit.java3
3 files changed, 8 insertions, 9 deletions
diff --git a/base/ca/src/com/netscape/ca/CMSCRLExtensions.java b/base/ca/src/com/netscape/ca/CMSCRLExtensions.java
index bbb4e5f19..507faa8e8 100644
--- a/base/ca/src/com/netscape/ca/CMSCRLExtensions.java
+++ b/base/ca/src/com/netscape/ca/CMSCRLExtensions.java
@@ -65,7 +65,8 @@ public class CMSCRLExtensions implements ICMSCRLExtensions {
private ICRLIssuingPoint mCRLIssuingPoint = null;
- private IConfigStore mConfig = null;
+ @SuppressWarnings("unused")
+ private IConfigStore mConfig;
private IConfigStore mCRLExtConfig = null;
private Vector<String> mCRLExtensionNames = new Vector<String>();
diff --git a/base/ca/src/com/netscape/ca/CRLIssuingPoint.java b/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
index f2ca2026c..f93e6e31b 100644
--- a/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
+++ b/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
@@ -277,7 +277,6 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
*/
private Date mLastUpdate;
private Date mLastFullUpdate;
- private long mLastScheduledUpdate = 0;
/**
* Next scheduled CRL update date
@@ -1904,7 +1903,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
Debug.trace("recoverCRLCache size=" + list.getSize() + " index=" + list.getCurrentIndex());
}
- CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mLogger, mAllowExtensions);
+ CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mAllowExtensions);
boolean includeCert = true;
int s = list.getSize() - list.getCurrentIndex();
@@ -2117,7 +2116,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
public void addRevokedCert(BigInteger serialNumber, RevokedCertImpl revokedCert,
String requestId) {
- CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mLogger, mAllowExtensions);
+ CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mAllowExtensions);
boolean includeCert = true;
if (cp != null)
includeCert = cp.checkRevokedCertExtensions(revokedCert.getExtensions());
@@ -2405,7 +2404,7 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
if (statsSub != null) {
statsSub.startTiming("generation");
}
- CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mLogger, mAllowExtensions);
+ CertRecProcessor cp = new CertRecProcessor(mCRLCerts, this, mAllowExtensions);
processRevokedCerts(cp);
if (statsSub != null) {
@@ -2956,17 +2955,15 @@ public class CRLIssuingPoint implements ICRLIssuingPoint, Runnable {
class CertRecProcessor implements IElementProcessor {
private Hashtable<BigInteger, RevokedCertificate> mCRLCerts = null;
private boolean mAllowExtensions = false;
- private ILogger mLogger;
private CRLIssuingPoint mIP = null;
private boolean mIssuingDistPointAttempted = false;
private boolean mIssuingDistPointEnabled = false;
private BitArray mOnlySomeReasons = null;
- public CertRecProcessor(Hashtable<BigInteger, RevokedCertificate> crlCerts, CRLIssuingPoint ip, ILogger logger,
+ public CertRecProcessor(Hashtable<BigInteger, RevokedCertificate> crlCerts, CRLIssuingPoint ip,
boolean allowExtensions) {
mCRLCerts = crlCerts;
- mLogger = logger;
mIP = ip;
mAllowExtensions = allowExtensions;
mIssuingDistPointAttempted = false;
diff --git a/base/ca/src/com/netscape/ca/SigningUnit.java b/base/ca/src/com/netscape/ca/SigningUnit.java
index 85ee1d482..2466fb652 100644
--- a/base/ca/src/com/netscape/ca/SigningUnit.java
+++ b/base/ca/src/com/netscape/ca/SigningUnit.java
@@ -77,7 +77,8 @@ public final class SigningUnit implements ISigningUnit {
private ILogger mLogger = CMS.getLogger();
private IConfigStore mConfig;
- private ISubsystem mOwner = null;
+ @SuppressWarnings("unused")
+ private ISubsystem mOwner;
private String mDefSigningAlgname = null;
private SignatureAlgorithm mDefSigningAlgorithm = null;