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
@@ -386,7 +386,7 @@ public class TrackDataHub {
lastSeenTrackPointId = localLastSeenTrackPointIdId;
}
listeners.stream().forEach(Listener::onNewTrackPointsDone);
listeners.forEach(Listener::onNewTrackPointsDone);
}
@@ -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);
}