Skip to content

Commit

Permalink
Replaced Stream.collect(Collectors.toList()) with Stream.toList()
Browse files Browse the repository at this point in the history
… (Sonar) (#1018)

Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
  • Loading branch information
pixeebot[bot] committed Apr 3, 2024
1 parent a63c0a3 commit 54c3bee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public ResponseEntity<byte[]> extractImageScans(

// Read the output photos in temp directory
List<Path> tempOutputFiles =
Files.list(tempDir).sorted().collect(Collectors.toList());
Files.list(tempDir).sorted().toList();
for (Path tempOutputFile : tempOutputFiles) {
byte[] imageBytes = Files.readAllBytes(tempOutputFile);
processedImageBytes.add(imageBytes);
Expand Down

0 comments on commit 54c3bee

Please sign in to comment.