Stream reuse in superclass

Jose jgetino at telefonica.net
Fri Apr 5 05:07:43 PDT 2013


The method  

doSomethingWith(Stream<T> s)

was using a forEach() that consumed the stream. 
Replacing it with a map() did the trick. 

Thanks, I like the solution. 



More information about the lambda-dev mailing list