mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Remove casts by specifying type. (#182)
This commit is contained in:
parent
26d2d3e405
commit
b54248b47f
1 changed files with 2 additions and 2 deletions
|
@ -727,7 +727,7 @@ public class ResponseHelper {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
feedItems.sort(Comparator.comparing(o -> ((FeedItem) o).uploaded).reversed());
|
feedItems.sort(Comparator.<FeedItem>comparingLong(o -> o.uploaded).reversed());
|
||||||
|
|
||||||
s.close();
|
s.close();
|
||||||
|
|
||||||
|
@ -764,7 +764,7 @@ public class ResponseHelper {
|
||||||
.setParameter("user", user.getId()).addEntity("Video", Video.class)
|
.setParameter("user", user.getId()).addEntity("Video", Video.class)
|
||||||
.addEntity("Channel", me.kavin.piped.utils.obj.db.Channel.class).getResultList();
|
.addEntity("Channel", me.kavin.piped.utils.obj.db.Channel.class).getResultList();
|
||||||
|
|
||||||
queryResults.sort(Comparator.comparing(o -> ((Video) (((Object[]) o)[0])).getUploaded()).reversed());
|
queryResults.sort(Comparator.<Object[]>comparingLong(o -> ((Video) (o)[0]).getUploaded()).reversed());
|
||||||
|
|
||||||
final List<SyndEntry> entries = new ObjectArrayList<>();
|
final List<SyndEntry> entries = new ObjectArrayList<>();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue