forked from upstream-mirrors/OpenTracks
Cleanup: simplify stream by using List operations (desugar).
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user