From 49acf5293554a558e01ba61a80a04e324fec9a1b Mon Sep 17 00:00:00 2001 From: Michael Winsauer Date: Tue, 11 Dec 2018 14:29:08 +0100 Subject: [PATCH] Revert "Filter retweets from output, as they are redundant." This reverts commit 7a3d751f --- .../at/aic18/g6t4/servicetwitter/service/TwitterService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/service/TwitterService.java b/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/service/TwitterService.java index bb1878b..d676835 100644 --- a/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/service/TwitterService.java +++ b/service-twitter/src/main/java/at/aic18/g6t4/servicetwitter/service/TwitterService.java @@ -8,8 +8,6 @@ import twitter4j.*; import java.util.List; import java.util.stream.Collectors; -import static java.util.function.Predicate.not; - @Service public class TwitterService { @@ -29,7 +27,6 @@ public class TwitterService { private List parseTweets(List statusList) { return statusList.stream() - .filter(not(Status::isRetweet)) .map(this::parseTweet) .collect(Collectors.toList()); } -- 2.43.0