projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Use Java’s Predicate in reply visibility filter
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
WebInterface.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/WebInterface.java
b/src/main/java/net/pterodactylus/sone/web/WebInterface.java
index
96677db
..
69077ed
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/WebInterface.java
+++ b/
src/main/java/net/pterodactylus/sone/web/WebInterface.java
@@
-17,8
+17,8
@@
package net.pterodactylus.sone.web;
package net.pterodactylus.sone.web;
-import static com.google.common.collect.FluentIterable.from;
import static java.util.logging.Logger.getLogger;
import static java.util.logging.Logger.getLogger;
+import static java.util.stream.Collectors.toSet;
import java.util.Collection;
import java.util.Set;
import java.util.Collection;
import java.util.Set;
@@
-273,7
+273,7
@@
public class WebInterface implements SessionProvider {
.addAll(newReplyNotification.getElements())
.addAll(localReplyNotification.getElements())
.build();
.addAll(newReplyNotification.getElements())
.addAll(localReplyNotification.getElements())
.build();
- return
from(allNewReplies).filter(replyVisibilityFilter.isVisible(currentSone)).toSet(
);
+ return
allNewReplies.stream().filter(replyVisibilityFilter.isVisible(currentSone)).collect(toSet()
);
}
//
}
//