Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Niels van de Weem committed Dec 2, 2023
1 parent 0c477b5 commit 416b5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/niels/sqlbackuprestore/query/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected Query(Client c, Owner owner, String query, BiConsumer<List<GridColumn>
if (consumer != null) {
consumer.accept(columns, StreamEx.of(list).select(GridRow.class).toImmutableList());
}
result.addAll(list.stream().map(r -> columns.stream().collect(HashMap<String, Object>::new, (m, v) -> m.put(v.getName(), v.getValue(r)), HashMap::putAll)).collect(Collectors.toList()));
result.addAll(list.stream().map(r -> columns.stream().collect(HashMap<String, Object>::new, (m, v) -> m.put(v.getName(), v.getValue(r)), HashMap::putAll)).toList());
}

@Override public void afterLastRowAdded(@NotNull GridDataRequest.Context context, int total) {
Expand Down

0 comments on commit 416b5a0

Please sign in to comment.