From b586d4e3129c67afe365c637aa1ba1024480b66a Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 2 Oct 2024 10:14:43 +0200 Subject: [PATCH] refactor(HelloController): simplify collection conversion to list --- src/main/java/de/szut/lf8_starter/hello/HelloController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/szut/lf8_starter/hello/HelloController.java b/src/main/java/de/szut/lf8_starter/hello/HelloController.java index 0f665f2..c846477 100644 --- a/src/main/java/de/szut/lf8_starter/hello/HelloController.java +++ b/src/main/java/de/szut/lf8_starter/hello/HelloController.java @@ -58,7 +58,7 @@ public class HelloController { .readAll() .stream() .map(e -> this.helloMapper.mapToGetDto(e)) - .collect(Collectors.toList()); + .toList(); } @Operation(summary = "deletes a Hello by id")