Skip to content

Commit

Permalink
resolve collect(Collectors.toList()) issues
Browse files Browse the repository at this point in the history
  • Loading branch information
giulia-tremolada committed Feb 4, 2025
1 parent 87068e4 commit 813c4bc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import java.util.stream.Collectors;

@Mapper(componentModel = "cdi", imports = { UUID.class, WorkflowType.class, OnboardingStatus.class })
public interface OnboardingMapper {
Expand Down Expand Up @@ -174,7 +173,7 @@ default List<Aggregate> mapCsvSendAggregatesToAggregates(List<CsvAggregateSend>
}
return csvAggregateSendList.stream()
.map(this::csvToAggregateSend)
.collect(Collectors.toList());
.toList();
}

default List<Aggregate> mapCsvAppIoAggregatesToAggregates(List<CsvAggregateAppIo> csvAggregateAppIoList) {
Expand All @@ -183,7 +182,7 @@ default List<Aggregate> mapCsvAppIoAggregatesToAggregates(List<CsvAggregateAppIo
}
return csvAggregateAppIoList.stream()
.map(this::csvToAggregateAppIo)
.collect(Collectors.toList());
.toList();
}

default List<AggregateUser> mapUsers(CsvAggregateSend csvAggregateSend) {
Expand Down

0 comments on commit 813c4bc

Please sign in to comment.