[Pki-devel] [PATCH] 15 Added generics (part 4).

John Magne jmagne at redhat.com
Thu Feb 9 01:26:27 UTC 2012


Went through the whole thing and appears to be mostly straightforward application of generics
in order to remove many warnings. Just a couple of things I noticed:

1. Line 346 of patch. Commented out a line instead of removing. Was there perhaps a reason for this?
//DerOutputStream outChain = new DerOutputStream();
2. Line 1467. Commented out line.           //String localAgents = req.getParameter("localAgents");
3. Line 2313. Commented out line.             //String tag = value.substring(0, i);
4. Line 2848. Commented out line.            //BigInt privateKeyVersion = privateKeyDerIn.getInteger();

I found some instances of commented out lines as above. Those are the ones I was able to find.


Also, the following construct I was not sure about. Loading it into Eclipse, there are no flags.
If you have a couple thoughts on this that would be great.


-    protected KeySpec engineGetKeySpec(Key key, Class keySpec)
+    @SuppressWarnings("unchecked")
+    protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec)
             throws InvalidKeySpecException {
 
In this instance it looks like the actual code calling this method has not changed. That could be totally normal.

Also, one more thing.

I noticed that much of the fixes touch the CRL stuff. It would be cool to run a few quick tests consisting of
revoking some certs and using the agent UI to inspect the CRL's to see if everything looks ok.

thanks,
jack


----- Original Message -----
From: "Endi Sukma Dewata" <edewata at redhat.com>
To: pki-devel at redhat.com
Sent: Tuesday, February 7, 2012 11:31:37 AM
Subject: [Pki-devel] [PATCH] 15 Added generics (part 4).

This patch brings down the warnings from 3500 to 2981.

Ticket #2

http://fedorapeople.org/gitweb?p=edewata/public_git/pki.git;a=commitdiff;h=b12fa84b08f566fdc804d6e70e0e9ccefdda7614

Passed smoke test.

-- 
Endi S. Dewata

_______________________________________________
Pki-devel mailing list
Pki-devel at redhat.com
https://www.redhat.com/mailman/listinfo/pki-devel




More information about the Pki-devel mailing list