Cleanup: use Stream.toList()

Replaces Stream.collect(Collection.toList() | Collectors.toCollection()).
This commit is contained in:
Dennis Guse
2025-10-19 18:25:01 +02:00
parent ddd1efeb58
commit 1a1a8a851b
11 changed files with 28 additions and 26 deletions
@@ -829,7 +829,8 @@ public class PreferencesUtils {
R.array.stats_custom_layout_fields_default_value_16,
R.array.stats_custom_layout_fields_default_value_17,
R.array.stats_custom_layout_fields_default_value_18
).map(id -> resources.obtainTypedArray(id)).collect(Collectors.toList());
).map(id -> resources.obtainTypedArray(id))
.toList();
}
@SuppressLint("ResourceType")
@@ -904,7 +905,9 @@ public class PreferencesUtils {
}
public static List<String> getAllCustomLayoutNames() {
return getAllCustomLayouts().stream().map(RecordingLayout::getName).collect(Collectors.toList());
return getAllCustomLayouts().stream()
.map(RecordingLayout::getName)
.toList();
}
public static void resetCustomLayoutPreferences() {