RFR: 8023275: Wrapping collections should override default methods
henry.jen at oracle.com
Tue Aug 20 00:09:37 UTC 2013
On 08/19/2013 01:01 PM, Mike Duigou wrote:
> - @SuppressWarnings("unchecked") would appear to be in some of the cases.
> - Replace:
> @summary Unit tests for wrapping classes should delegate to default methods
> @summary Ensure Collections wrapping classes provide non-default implementations
> - ArrayList<Method> list -> List<Method> list
> - TestNG DataProviders can return Iterator<Object> which means you can return cases.iterator() rather than converting to an array.
Thanks for the tip, testng javadoc doesn't mention it, but in document.
Since it's one time construction and not lazily, I didn't change it.
More information about the core-libs-dev