From 539071869d34a53e188244f7e9610bc922dd9924 Mon Sep 17 00:00:00 2001 From: Andrei Rybak Date: Wed, 13 Apr 2022 15:35:12 +0200 Subject: [PATCH] Histories: use Java 17 features --- src/main/java/dev/andrybak/resoday/gui/Histories.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/andrybak/resoday/gui/Histories.java b/src/main/java/dev/andrybak/resoday/gui/Histories.java index d643196..9aac4ae 100644 --- a/src/main/java/dev/andrybak/resoday/gui/Histories.java +++ b/src/main/java/dev/andrybak/resoday/gui/Histories.java @@ -96,7 +96,7 @@ public void reorder(Window parent, Path dir, CalendarLayoutSettingProvider calen } List inputOrder = inputRows.stream() .map(ReorderHabitsDialog.Row::getId) - .collect(Collectors.toList()); + .toList(); List outputOrder = outputRows.stream() .map(ReorderHabitsDialog.Row::getId) .collect(Collectors.toList());