Comparator
Remi Forax
forax at univ-mlv.fr
Wed Jul 24 08:42:45 PDT 2013
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
More information about the lambda-dev
mailing list