diff --git a/li.strolch.service/src/main/java/li/strolch/report/policy/GenericReport.java b/li.strolch.service/src/main/java/li/strolch/report/policy/GenericReport.java index 308b0102d..e0f60f40d 100644 --- a/li.strolch.service/src/main/java/li/strolch/report/policy/GenericReport.java +++ b/li.strolch.service/src/main/java/li/strolch/report/policy/GenericReport.java @@ -852,9 +852,8 @@ public class GenericReport extends ReportPolicy { * @return the stream of {@link StrolchRootElement StrolchRootElement} */ protected Stream queryRows() { - if (isParallel()) - return getStreamFor(getObjectTypeParam()).parallel(); - return getStreamFor(getObjectTypeParam()); + Stream stream = getStreamFor(getObjectTypeParam()); + return isParallel() ? stream.parallel() : stream; } protected StringParameter getObjectTypeParam() {