[PATCH] 17 Removed unused variables (part 1).
This patch brings down the warnings from 2917 to 2408. Ticket #2 http://fedorapeople.org/gitweb?p=edewata/public_git/pki.git;a=commitdiff;h=f... -- Endi S. Dewata
Some additional comments: 1. You can eliminate the call for the variable keyAlgorithm in SizePanel.java 2. Rather then removing the currently unused error message - you should change the log statement to use it in JobScheduler.java. In other words, change statements like: log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_JOBS_INIT_ERROR", e.toString())); to : log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_JOBS_INIT_ERROR", errMsg)); The same comment applies to PublisherProcessor.java and UGSubsystem.java 3. Remove the unused exceptions in LdapAnonConnFactory and LdapBoundConnFactory. Otherwise the rest looks ok. You should confirm that it all passes a smoke test - which consists of: 1. Install and configure a CA and KRA. 2. Confirm issuance of some certs, archival of an encryption keys, revocation of a cert and generation of CRL 3. Run console and confirm that all the fields look ok. Ade On Tue, 2012-02-14 at 16:17 -0600, Endi Sukma Dewata wrote:
This patch brings down the warnings from 2917 to 2408.
Ticket #2
http://fedorapeople.org/gitweb?p=edewata/public_git/pki.git;a=commitdiff;h=f...
_______________________________________________ Pki-devel mailing list Pki-devel@redhat.com https://www.redhat.com/mailman/listinfo/pki-devel
New patch attached. It can be viewed here: http://fedorapeople.org/gitweb?p=edewata/public_git/pki.git;a=commitdiff;h=6... On 2/16/2012 9:56 PM, Ade Lee wrote:
1. You can eliminate the call for the variable keyAlgorithm in SizePanel.java
Fixed.
2. Rather then removing the currently unused error message - you should change the log statement to use it in JobScheduler.java.
In other words, change statements like: log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_JOBS_INIT_ERROR", e.toString())); to : log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_JOBS_INIT_ERROR", errMsg));
The same comment applies to PublisherProcessor.java and UGSubsystem.java
As discussed, the static messages are duplicates of the messages in the resource bundle, so we don't need to include it again. The static messages have been removed.
3. Remove the unused exceptions in LdapAnonConnFactory and LdapBoundConnFactory.
Fixed.
Otherwise the rest looks ok.
You should confirm that it all passes a smoke test - which consists of:
1. Install and configure a CA and KRA. 2. Confirm issuance of some certs, archival of an encryption keys, revocation of a cert and generation of CRL 3. Run console and confirm that all the fields look ok.
These are confirmed. BTW, I think we need to standardize the smoke test. We can discuss this in the next meeting. -- Endi S. Dewata
ACK On Mon, 2012-02-20 at 09:13 -0600, Endi Sukma Dewata wrote:
New patch attached. It can be viewed here:
http://fedorapeople.org/gitweb?p=edewata/public_git/pki.git;a=commitdiff;h=6...
On 2/16/2012 9:56 PM, Ade Lee wrote:
1. You can eliminate the call for the variable keyAlgorithm in SizePanel.java
Fixed.
2. Rather then removing the currently unused error message - you should change the log statement to use it in JobScheduler.java.
In other words, change statements like: log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_JOBS_INIT_ERROR", e.toString())); to : log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_JOBS_INIT_ERROR", errMsg));
The same comment applies to PublisherProcessor.java and UGSubsystem.java
As discussed, the static messages are duplicates of the messages in the resource bundle, so we don't need to include it again. The static messages have been removed.
3. Remove the unused exceptions in LdapAnonConnFactory and LdapBoundConnFactory.
Fixed.
Otherwise the rest looks ok.
You should confirm that it all passes a smoke test - which consists of:
1. Install and configure a CA and KRA. 2. Confirm issuance of some certs, archival of an encryption keys, revocation of a cert and generation of CRL 3. Run console and confirm that all the fields look ok.
These are confirmed. BTW, I think we need to standardize the smoke test. We can discuss this in the next meeting.
participants (2)
-
Ade Lee -
Endi Sukma Dewata