Skip to content

Commit

Permalink
Use toList in TransactionLogPartitionStore
Browse files Browse the repository at this point in the history
  • Loading branch information
patchwork01 committed Feb 21, 2025
1 parent 2e824d2 commit a55c2d7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import java.time.ZoneId;
import java.util.List;

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

/**
* A partition store backed by a log of transactions. Part of {@link TransactionLogStateStore}.
*/
Expand Down Expand Up @@ -63,7 +61,7 @@ public List<Partition> getAllPartitions() throws StateStoreException {

@Override
public List<Partition> getLeafPartitions() throws StateStoreException {
return partitions().all().stream().filter(Partition::isLeafPartition).collect(toUnmodifiableList());
return partitions().all().stream().filter(Partition::isLeafPartition).toList();
}

@Override
Expand Down

0 comments on commit a55c2d7

Please sign in to comment.