Stream reuse in superclass (original) (raw)

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


The method

doSomethingWith(Stream 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