Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
li-kramgopa committed Feb 16, 2024
1 parent 713cfb0 commit 9fdf36a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import java.util.stream.IntStream;
import java.util.stream.Stream;

import static java.util.stream.Collectors.*;


/**
* Utilities for dealing with java streams.
Expand Down Expand Up @@ -88,7 +86,8 @@ private StreamUtil() {
}

final int batchCount = (list.size() - 1) / batchSize;
final Function<List<T>, List<R>> batchingMapper = batch -> batch.stream().map(mapper).collect(toList());
final Function<List<T>, List<R>> batchingMapper =
batch -> batch.stream().map(mapper).collect(Collectors.toList());
List<List<T>> sublists = IntStream.rangeClosed(0, batchCount).mapToObj(batch -> {
int startIndex = batch * batchSize;
int endIndex = (batch == batchCount) ? list.size() : (batch + 1) * batchSize;
Expand Down

0 comments on commit 9fdf36a

Please sign in to comment.