Cleanup: simplify stream by using List operations (desugar).

This commit is contained in:
Dennis Guse
2025-10-16 22:50:38 +02:00
parent 73872e8926
commit daeb972c8a
10 changed files with 12 additions and 18 deletions
@@ -70,7 +70,7 @@ public class TrackSelection implements ContentProviderUtils.ContentProviderSelec
ArrayList<String> args = trackIds.stream().map(id -> Long.toString(id.id())).collect(Collectors.toCollection(ArrayList::new));
args.addAll(categories);
args.addAll(fromToArgs);
selectionArgs = args.stream().toArray(String[]::new);
selectionArgs = args.toArray(String[]::new);
return new SelectionData(selection, selectionArgs);
}