Comparator
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Jul 24 08:49:06 PDT 2013
On 24/07/13 16:42, Remi Forax wrote:
> On 07/24/2013 05:17 PM, Maurizio Cimadamore wrote:
>> On 24/07/13 15:43, Remi Forax wrote:
>>> in fact it's already an issue:
>>> https://github.com/alexruiz/fest-util/blob/master/src/main/java/org/fest/util/Lists.java#L93
>>>
>> Not seeing the relation between this example and what's being
>> discussed in this thread. Well, apart that it's a static helper
>> method for creating array lists with no 'null' elements.
>>
>> Maurizio
>
> @NonNull is applied on the return value, not on the element of the
> ArrayList.
>
> and it's perhaps more clear with codes that uses that library but this
> wrapper avoid to declare type arguments in user codes.
>
> Rémi
>
>
Was confused by another signature; in any case, it looks like everything
within the file you have sent would be ok with just using diamond
instead of a special purpose static method.
Maurizio
More information about the lambda-dev
mailing list