Declare filter methods as private
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 3 Mar 2016 13:15:14 +0000 (14:15 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 3 Mar 2016 13:15:14 +0000 (14:15 +0100)
src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java

index 1d4aa68..5fd5687 100644 (file)
@@ -108,7 +108,7 @@ public class ListNotificationFilters {
         * @return The filtered new-post notification, or {@code null} if the
         *         notification should be removed
         */
-       public static ListNotification<Post> filterNewPostNotification(ListNotification<Post> newPostNotification, Sone currentSone, boolean soneRequired) {
+       private static ListNotification<Post> filterNewPostNotification(ListNotification<Post> newPostNotification, Sone currentSone, boolean soneRequired) {
                if (soneRequired && (currentSone == null)) {
                        return null;
                }
@@ -144,7 +144,7 @@ public class ListNotificationFilters {
         * @return The filtered new-reply notification, or {@code null} if the
         *         notification should be removed
         */
-       public static ListNotification<PostReply> filterNewReplyNotification(ListNotification<PostReply> newReplyNotification, Sone currentSone) {
+       private static ListNotification<PostReply> filterNewReplyNotification(ListNotification<PostReply> newReplyNotification, Sone currentSone) {
                if (currentSone == null) {
                        return null;
                }