On Mar 2, 2011, at 6:19 PM, sebb wrote:
> On 2 March 2011 22:55, <[email protected]> wrote:
>> Author: mbenson
>> Date: Wed Mar 2 22:55:02 2011
>> New Revision: 1076446
>>
>> URL: http://svn.apache.org/viewvc?rev=1076446&view=rev
>> Log:
>> add FilteredIterable
[SNIP]
>> +public class FilteredIterable<T> implements Iterable<T> {
>> + @SuppressWarnings({ "rawtypes", "unchecked" })
>> + // type irrelevant for empty instance
>> + private static final FilteredIterable EMPTY = new
>> FilteredIterable(Collections.EMPTY_LIST) {
>
> BTW, using Collections.emptyList() instead should allow the @Suppress
> tag to be removed.
>
Except that the local instance is itself a raw instance of the containing
parameterized type. ;)
Matt
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]