From b18bac64e8cdd43a34aa1449f6c335cdda463a0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 9 Jun 2016 07:18:00 +0200 Subject: [PATCH] Fix method name --- .../java/net/pterodactylus/sone/notify/ListNotificationFilter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java index f3c9305..7084e66 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilter.java @@ -81,7 +81,7 @@ public class ListNotificationFilter { if (!currentSone.getOptions().isShowNewPostNotifications()) { continue; } - Optional> filteredNotification = filterNewPostNotification((ListNotification) notification, currentSone); + Optional> filteredNotification = filterPostNotification((ListNotification) notification, currentSone); if (filteredNotification.isPresent()) { filteredNotifications.add(filteredNotification.get()); } @@ -98,7 +98,7 @@ public class ListNotificationFilter { filteredNotifications.add(filteredNotification.get()); } } else if (notification.getId().equals("mention-notification")) { - Optional> filteredNotification = filterNewPostNotification((ListNotification) notification, null); + Optional> filteredNotification = filterPostNotification((ListNotification) notification, null); if (filteredNotification.isPresent()) { filteredNotifications.add(filteredNotification.get()); } @@ -119,7 +119,7 @@ public class ListNotificationFilter { * @return The filtered post notification, or {@link Optional#absent()} if the notification should be removed */ @Nonnull - private Optional> filterNewPostNotification(@Nonnull ListNotification postNotification, + private Optional> filterPostNotification(@Nonnull ListNotification postNotification, @Nullable Sone currentSone) { List newPosts = from(postNotification.getElements()).filter(postVisibilityFilter.isVisible(currentSone)).toList(); if (newPosts.isEmpty()) { -- 2.7.4