X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fnotify%2FListNotificationFilter.java;h=76bfbff7766be421bd803c2bdf83bca05a239184;hp=f2da694b336aa98e158287e5a9687c94f0efa489;hb=a5743ce8177323159e4d1828dced6021d27c4d62;hpb=d3341150dde11b1d510193b71b22db85e426d6fb diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java index f2da694..76bfbff 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java @@ -17,7 +17,6 @@ package net.pterodactylus.sone.notify; -import static com.google.common.collect.FluentIterable.from; import static java.util.stream.Collectors.toList; import java.util.ArrayList; @@ -149,7 +148,7 @@ public class ListNotificationFilter { */ private Optional> filterNewReplyNotification(ListNotification newReplyNotification, @Nonnull Sone currentSone) { - List newReplies = from(newReplyNotification.getElements()).filter(replyVisibilityFilter.isVisible(currentSone)).toList(); + List newReplies = newReplyNotification.getElements().stream().filter(replyVisibilityFilter.isVisible(currentSone)).collect(toList()); if (newReplies.isEmpty()) { return Optional.absent(); }