On Mar 2, 2011, at 6:19 PM, sebb wrote:

> On 2 March 2011 22:55,  <mben...@apache.org> 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: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to