[Minor] Code cleanup
This commit is contained in:
parent
7145b0f823
commit
6e3218540b
|
@ -852,9 +852,8 @@ public class GenericReport extends ReportPolicy {
|
||||||
* @return the stream of {@link StrolchRootElement StrolchRootElement}
|
* @return the stream of {@link StrolchRootElement StrolchRootElement}
|
||||||
*/
|
*/
|
||||||
protected Stream<? extends StrolchRootElement> queryRows() {
|
protected Stream<? extends StrolchRootElement> queryRows() {
|
||||||
if (isParallel())
|
Stream<? extends StrolchRootElement> stream = getStreamFor(getObjectTypeParam());
|
||||||
return getStreamFor(getObjectTypeParam()).parallel();
|
return isParallel() ? stream.parallel() : stream;
|
||||||
return getStreamFor(getObjectTypeParam());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected StringParameter getObjectTypeParam() {
|
protected StringParameter getObjectTypeParam() {
|
||||||
|
|
Loading…
Reference in New Issue