diff --git a/src/main/java/org/folio/service/claiming/ClaimingService.java b/src/main/java/org/folio/service/claiming/ClaimingService.java index 9da21b2d9..1530181d0 100644 --- a/src/main/java/org/folio/service/claiming/ClaimingService.java +++ b/src/main/java/org/folio/service/claiming/ClaimingService.java @@ -122,7 +122,7 @@ private Future>> groupPieceIdsByVendorId(List p return Future.succeededFuture(); } var uniquePiecePoLinePairs = pieces.stream() - .filter(Objects::nonNull).filter(piece -> Objects.nonNull(piece.getId()) & Objects.nonNull(piece.getPoLineId())) + .filter(Objects::nonNull).filter(piece -> Objects.nonNull(piece.getId()) && Objects.nonNull(piece.getPoLineId())) .map(piece -> Pair.of(piece.getPoLineId(), piece.getId())).distinct() .toList(); logger.info("groupPieceIdsByVendorId:: Prepared unique piece-poLine pairs, pairs: {}", uniquePiecePoLinePairs); @@ -173,7 +173,8 @@ private Future createJobsByVendor(JsonObject config, Map { @@ -193,7 +194,8 @@ private List>> createUpdatePiecesAndJobFutures(JsonObject co pieceIdsByVendorId.forEach((vendorId, pieceIds) -> config.stream() .filter(entry -> isExportTypeClaimsAndCorrectVendorId(vendorId, entry) && Objects.nonNull(entry.getValue())) .forEach(entry -> { - logger.info("createJobsByVendor:: Preparing job integration detail for vendor, vendor id: {}, pieces: {}, job key: {}", vendorId, pieceIds.size(), entry.getKey()); + logger.info("createJobsByVendor:: Preparing job integration detail for vendor, vendor id: {}, pieces: {}, job key: {}", + vendorId, pieceIds.size(), entry.getKey()); updatePiecesAndJobFutures.add(updatePiecesAndCreateJob(pieceIds, entry, requestContext)); })); return updatePiecesAndJobFutures;