refactor(ocr): use stream .toList() instead of FQCN Collectors.toList()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-17 21:47:36 +02:00
committed by marcel
parent 38a9719bdb
commit a3a40ed179

View File

@@ -206,7 +206,7 @@ public class OcrTrainingService {
.map(OcrTrainingRun::getPersonId)
.filter(Objects::nonNull)
.distinct()
.collect(java.util.stream.Collectors.toList());
.toList();
Map<String, String> personNames = new HashMap<>();
if (!distinctPersonIds.isEmpty()) {
personService.getAllById(distinctPersonIds)