use date constructor directly when a calendar is not needed, better performances

This commit is contained in:
Athou
2013-06-25 16:57:48 +02:00
parent 11fe2b6590
commit 158abadf19
18 changed files with 29 additions and 41 deletions

View File

@@ -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));