code review request for 7011095, revert diamond changes in method args
stuart.marks at oracle.com
Tue Jan 11 00:42:51 UTC 2011
This is a followup to the diamond conversion I did for 6880112, reviewed here a
few weeks ago .
That conversion applied the diamond operator in variable initializers,
assignment statements, return statements, and in method arguments. For
stylistic reasons we've decided that using diamond in method args isn't
necessarily a good idea. The type inference for method args can be quite
subtle, and since the diamond operator is supposed to improve brevity and
clarity, using it in method args seems counterproductive.
Given this, we've decided to pull out the usage of diamond from the places that
it was added by 6880112. Here's the webrev:
More information about the core-libs-dev