Hi Greg,
those are java 8 functional streams* - not IO streams. So they don't
really have to be closed, the method collect() "runs" the stream in this
example by putting all results into a list. There are no system
resources involved which would have to be freed.
this code snipped creates a
mbien opened a new pull request #97:
URL: https://github.com/apache/roller/pull/97
Simple weblog entry plugin which can be used to escape angle brackets from
text within pre tags.
It understands the common pattern of pre and code tag in succession which is
used by javascript source
no worries. I remember the first time i heard of java getting streams my
first thought was io too.
Streams are great as long you don't overuse them.
-michael
On 11.07.21 10:09, Greg Huber wrote:
Sorry you are right, was thinking more of io streams, rather than
java.util.Collection.stream.