From 5e7e8cd3542baa29c5efcd71339b1fe0b18def0e Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 2 Oct 2024 10:19:56 +0200 Subject: [PATCH] refactor(HelloController): simplify collection conversion --- 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 c846477..5755a9e 100644 --- a/src/main/java/de/szut/lf8_starter/hello/HelloController.java +++ b/src/main/java/de/szut/lf8_starter/hello/HelloController.java @@ -94,6 +94,6 @@ public class HelloController { .findByMessage(message) .stream() .map(e -> this.helloMapper.mapToGetDto(e)) - .collect(Collectors.toList()); + .toList(); } }