objectcomputing / check-ins

Other
7 stars 7 forks source link

Switch from collection.stream.foreach to collection.foreach #2525

Closed timyates closed 23 hours ago

timyates commented 3 days ago

This reduces the amount of code that happens in the loop.

There's a semantic difference here, in that Collection.forEach respects any custom iterator order in the collection type.

But I don't think that's an issue here