mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
use date constructor directly when a calendar is not needed, better performances
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.commafeed.backend.dao;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@@ -27,7 +26,7 @@ import com.google.common.collect.Lists;
|
||||
public class FeedDAO extends GenericDAO<Feed> {
|
||||
|
||||
private List<Predicate> getUpdatablePredicates(Root<Feed> root) {
|
||||
Date now = Calendar.getInstance().getTime();
|
||||
Date now = new Date();
|
||||
|
||||
Predicate hasSubscriptions = builder.isNotEmpty(root
|
||||
.get(Feed_.subscriptions));
|
||||
|
||||
Reference in New Issue
Block a user