Replaced Stream.collect(Collectors.toList())
with Stream.toList()
(Sonar) (#1018)
Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
This commit is contained in:
parent
a63c0a3625
commit
54c3bee205
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ public class ExtractImageScansController {
|
|||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue