Annotations and Streams API

Mohan Radhakrishnan radhakrishnan.mohan at gmail.com
Fri Jan 10 21:29:33 PST 2014


 Hi,
    I understand that this is inaccessible to the Annotations API because
it is written inside a method body. Is that right ?

That is intended for pluggable type checkers ?

     List list1 = list.

               stream().

                map(p::matcher).

                  filter(Matcher::find).map(matcher -> matcher.group()).

                      collect(Collectors.toCollection(@ NonNull ArrayList::
*new*));

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/type-annotations-dev/attachments/20140111/c61c3672/attachment.html 


More information about the type-annotations-dev mailing list