I am also curious about this change;

-        ).distinct().forEach( unitOfWork::remove );
+        ).distinct().collect( Collectors.toList() ).stream().forEach(
unitOfWork::remove );

>From my understanding it is the same thing (except slower). Do you recall
what this is about?


On Fri, Sep 4, 2015 at 7:56 PM, Niclas Hedhman <[email protected]> wrote:

> Kent,
> while reviewing, I saw
>
>     Arrays.asList( type ).stream()
>
> This can more efficiently be written as
>
>     Stream.of( type )
>
> Cheers
> --
> Niclas Hedhman, Software Developer
> http://zest.apache.org - New Energy for Java
>



-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

Reply via email to