diff --git a/src/main/java/org/folio/service/pieces/PieceStorageService.java b/src/main/java/org/folio/service/pieces/PieceStorageService.java index 763c29338..466cab229 100644 --- a/src/main/java/org/folio/service/pieces/PieceStorageService.java +++ b/src/main/java/org/folio/service/pieces/PieceStorageService.java @@ -13,7 +13,6 @@ import java.util.Collection; import java.util.Collections; import java.util.List; -import java.util.stream.Collectors; import lombok.extern.log4j.Log4j2; import org.apache.commons.collections4.CollectionUtils; @@ -177,7 +176,7 @@ public Future> getPiecesByLineIdsByChunks(List lineIds, Requ return collectResultsOnSuccess(futures) .map(lists -> lists.stream() .flatMap(Collection::stream) - .collect(Collectors.toList())); + .toList()); } private Future> getPieceChunkByLineIds(Collection poLineIds, RequestContext requestContext) { diff --git a/src/main/java/org/folio/service/pieces/PiecesClaimingService.java b/src/main/java/org/folio/service/pieces/PiecesClaimingService.java index aacec36b6..2ec70177d 100644 --- a/src/main/java/org/folio/service/pieces/PiecesClaimingService.java +++ b/src/main/java/org/folio/service/pieces/PiecesClaimingService.java @@ -169,7 +169,7 @@ private Future createJobsByVendor(JsonObject config, Map