From 0689b6614a03bb78d7f2d918c39fdd0c33000b0e Mon Sep 17 00:00:00 2001 From: Ole Date: Sat, 16 Nov 2024 19:01:11 +0100 Subject: [PATCH] opt --- api/src/main/java/pro/beerpong/api/service/PlayerService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/main/java/pro/beerpong/api/service/PlayerService.java b/api/src/main/java/pro/beerpong/api/service/PlayerService.java index 5bce9ee..e6fb7f2 100644 --- a/api/src/main/java/pro/beerpong/api/service/PlayerService.java +++ b/api/src/main/java/pro/beerpong/api/service/PlayerService.java @@ -12,7 +12,6 @@ import pro.beerpong.api.repository.SeasonRepository; import java.util.List; -import java.util.UUID; import java.util.stream.Collectors; @Service @@ -48,7 +47,7 @@ public List copyPlayersFromOldSeason(String oldSeasonId, String newSe newPlayer.setSeason(newSeason); return playerRepository.save(newPlayer); }) - .collect(Collectors.toList()); + .toList(); return newSeasonPlayers.stream() .map(playerMapper::playerToPlayerDto)