From 891d9a46b2254a92a06e38e67b2fa33085e528b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 29 Jun 2020 00:11:12 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=8E=A8=20Clean=20up=20imports?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java | 2 -- src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt | 3 ++- src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt | 1 - src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt | 1 - src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt | 1 - 5 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java b/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java index ec99cbe..a447108 100644 --- a/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java +++ b/src/main/java/net/pterodactylus/sone/notify/DefaultReplyVisibilityFilter.java @@ -1,7 +1,5 @@ package net.pterodactylus.sone.notify; -import java.util.function.Predicate; - import static com.google.common.base.Preconditions.checkNotNull; import javax.annotation.Nonnull; diff --git a/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt b/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt index 86d1316..67546c5 100644 --- a/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt +++ b/src/main/kotlin/net/pterodactylus/sone/notify/Notifications.kt @@ -17,7 +17,8 @@ package net.pterodactylus.sone.notify -import net.pterodactylus.util.notify.* +import net.pterodactylus.util.notify.Notification +import net.pterodactylus.util.notify.NotificationManager /** * Returns whether the notification manager contains a notification with the given ID. diff --git a/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt b/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt index 9230862..36b6f89 100644 --- a/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/notify/PostVisibilityFilter.kt @@ -3,7 +3,6 @@ package net.pterodactylus.sone.notify import com.google.inject.ImplementedBy import net.pterodactylus.sone.data.Post import net.pterodactylus.sone.data.Sone -import java.util.function.Predicate @ImplementedBy(DefaultPostVisibilityFilter::class) interface PostVisibilityFilter { diff --git a/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt b/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt index 785386a..e8a48cb 100644 --- a/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt +++ b/src/main/kotlin/net/pterodactylus/sone/notify/ReplyVisibilityFilter.kt @@ -3,7 +3,6 @@ package net.pterodactylus.sone.notify import com.google.inject.ImplementedBy import net.pterodactylus.sone.data.PostReply import net.pterodactylus.sone.data.Sone -import java.util.function.Predicate @ImplementedBy(DefaultReplyVisibilityFilter::class) interface ReplyVisibilityFilter { diff --git a/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt b/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt index e7103c6..20065f3 100644 --- a/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt +++ b/src/test/kotlin/net/pterodactylus/sone/notify/Testing.kt @@ -3,7 +3,6 @@ package net.pterodactylus.sone.notify import net.pterodactylus.sone.data.Post import net.pterodactylus.sone.data.PostReply import net.pterodactylus.sone.data.Sone -import java.util.function.Predicate fun matchThisPost(post: Post) = createPostVisibilityFilter { _, p -> p == post } val showAllPosts = createPostVisibilityFilter { _, _ -> true } -- 2.7.4