review request for 7005608, update 1: diamond conversion of JCA and crypto providers

Stuart Marks stuart.marks at oracle.com
Wed Jan 5 23:57:31 UTC 2011


Here's an updated webrev for 7005608.

I've removed the changes that use diamond in assignment statements. In these 
cases the variable is declared elsewhere, so using diamond for these makes the 
code somewhat less understandable. I've left in the use of diamond for variable 
initializers (which occur at the point of declaration, so the inferred type is 
right there) and for return statements (where the inferred type is the return 
type of the method).

There were a couple cases where the variable declaration was just a "few" lines 
above the assignment statement, so using diamond wouldn't be too bad here. 
However, I still found myself hunting around a bit for the declaration. I also 
couldn't decide how far away was too far for using diamond: 5 lines? 10 lines? 
In the end, I decided not to use diamond for any assignment statements, if only 
for consistency.

Also, I've added a space after the comma in

       Map<BigInteger, BlindingParameters>

at Brad's request.

Note that I did not update the copyright years, as it seems that this will be 
handled by an automated process.

Updated webrev here:

http://cr.openjdk.java.net/~smarks/reviews/7005608/webrev.1/

Thanks!

s'marks



More information about the security-dev mailing list