Skip to content

Commit

Permalink
Code-style: Use existing method.
Browse files Browse the repository at this point in the history
Fixes: SE-14230
  • Loading branch information
fhaScireum committed Dec 12, 2024
1 parent c79ad96 commit 707c3b0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/java/sirius/biz/analytics/events/EventRecorder.java
Original file line number Diff line number Diff line change
Expand Up @@ -551,11 +551,10 @@ protected Event<?> fetchBufferedEvent() {
/// @param <E> the type of the events to fetch
/// @return a stream of events which match the given query
public <E extends Event<E> & UserEvent> Stream<E> fetchUserEventsBlockwise(SmartQuery<E> query) {
return StreamSupport.stream(new EventSpliterator<E>(query,
List.of(UserEvent.USER_DATA.inner(UserData.SCOPE_ID),
UserEvent.USER_DATA.inner(UserData.TENANT_ID),
UserEvent.USER_DATA.inner(UserData.USER_ID))),
false);
return fetchEventsBlockwise(query,
List.of(UserEvent.USER_DATA.inner(UserData.SCOPE_ID),
UserEvent.USER_DATA.inner(UserData.TENANT_ID),
UserEvent.USER_DATA.inner(UserData.USER_ID)));
}

/// Fetches all events which match the given query considering the given duplicate preventer.
Expand Down

0 comments on commit 707c3b0

Please sign in to comment.