Skip to content

Commit

Permalink
[MODORDERS-1209]. Fix sonar issue, change log level
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Dec 9, 2024
1 parent 9cc833d commit df16bb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -177,7 +176,7 @@ public Future<List<Piece>> getPiecesByLineIdsByChunks(List<String> lineIds, Requ
return collectResultsOnSuccess(futures)
.map(lists -> lists.stream()
.flatMap(Collection::stream)
.collect(Collectors.toList()));
.toList());
}

private Future<List<Piece>> getPieceChunkByLineIds(Collection<String> poLineIds, RequestContext requestContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private Future<ClaimingResults> createJobsByVendor(JsonObject config, Map<String
var successClaimingPieceResults = createSuccessClaimingResults(updatedPieceLists);
log.info("createJobsByVendor:: Successfully processed pieces for claiming, count: {}", successClaimingPieceResults.size());
var claimingResults = new ClaimingResults().withClaimingPieceResults(successClaimingPieceResults);
log.info("createJobsByVendor:: Returning claiming results, claimingResults: {}", JsonObject.mapFrom(claimingResults).encodePrettily());
log.debug("createJobsByVendor:: Returning claiming results, claimingResults: {}", JsonObject.mapFrom(claimingResults).encodePrettily());
return claimingResults;
});
}
Expand Down

0 comments on commit df16bb9

Please sign in to comment.