Make use of Java 8 Streams

Description

Some for loops with nested if constructs can be replaced by the Stream API and save creation of temporary objects, make use of a standard API and thus makes code readable (after learning Stream API). This ticket is just for refactoring without implementing functional changes so it should be safe for LTS 2016, too

Environment

None

Assignee

Thomas Scheffler

Reporter

Thomas Scheffler

Labels

None

URL

None

External issue ID

None

Fix versions

Priority

Medium
Configure