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/ru/sape/SapePageLinks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/ru') diff --git a/src/main/java/ru/sape/SapePageLinks.java b/src/main/java/ru/sape/SapePageLinks.java index 2bd5464e..c9eeeb6f 100644 --- a/src/main/java/ru/sape/SapePageLinks.java +++ b/src/main/java/ru/sape/SapePageLinks.java @@ -43,7 +43,7 @@ public class SapePageLinks { pageLinks = Collections.singletonList(site.code()); } else { pageLinks = site.pages().stream().filter(page -> page.uri().equals(req)) - .flatMap(page -> page.links().stream()).collect(Collectors.toList()); + .flatMap(page -> page.links().stream()).toList(); } } -- cgit v1.2.3