injetions cleanup

This commit is contained in:
Athou
2013-04-13 09:17:38 +02:00
parent f148fd3ead
commit 544ebb8e86
4 changed files with 1 additions and 23 deletions

View File

@@ -5,7 +5,6 @@ import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import com.commafeed.backend.dao.FeedCategoryDAO;
import com.commafeed.backend.dao.FeedDAO;
import com.commafeed.backend.dao.FeedEntryDAO;
import com.commafeed.backend.dao.FeedEntryStatusDAO;
@@ -21,9 +20,6 @@ import com.google.api.client.util.Lists;
@Stateless
public class FeedSubscriptionService {
@Inject
FeedCategoryDAO feedCategoryDAO;
@Inject
FeedDAO feedDAO;
@@ -60,8 +56,7 @@ public class FeedSubscriptionService {
if (newSubscription) {
List<FeedEntryStatus> statuses = Lists.newArrayList();
List<FeedEntry> allEntries = feedEntryDAO.findByFeed(feed, 0,
10);
List<FeedEntry> allEntries = feedEntryDAO.findByFeed(feed, 0, 10);
for (FeedEntry entry : allEntries) {
FeedEntryStatus status = new FeedEntryStatus();
status.setEntry(entry);