From 2a858017b7d9a620d1083b69b7ca038c34a5ba89 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 24 Dec 2022 03:15:44 +0300 Subject: `Collectors.toList()` -> `toList()` --- src/main/java/com/juick/www/rss/MessagesView.java | 2 +- src/main/java/com/juick/www/rss/RepliesView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/juick/www/rss') diff --git a/src/main/java/com/juick/www/rss/MessagesView.java b/src/main/java/com/juick/www/rss/MessagesView.java index dde67d7b..71d63754 100644 --- a/src/main/java/com/juick/www/rss/MessagesView.java +++ b/src/main/java/com/juick/www/rss/MessagesView.java @@ -84,7 +84,7 @@ public class MessagesView extends AbstractRssFeedView { protected List buildFeedItems(Map model, HttpServletRequest request, HttpServletResponse response) { List msgs = (List) model.get("messages"); - return msgs.stream().map(this::createRssItem).collect(Collectors.toList()); + return msgs.stream().map(this::createRssItem).toList(); } @Override diff --git a/src/main/java/com/juick/www/rss/RepliesView.java b/src/main/java/com/juick/www/rss/RepliesView.java index 83c8e104..80548a79 100644 --- a/src/main/java/com/juick/www/rss/RepliesView.java +++ b/src/main/java/com/juick/www/rss/RepliesView.java @@ -65,7 +65,7 @@ public class RepliesView extends AbstractRssFeedView { HttpServletRequest request, HttpServletResponse response) { List msgs = (List)model.get("messages"); - return msgs.stream().map(this::createRssItem).collect(Collectors.toList()); + return msgs.stream().map(this::createRssItem).toList(); } @Override -- cgit v1.2.3