From 0ec1b5b1d8bdf682f87909a1a0dea64290f6121d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 11 Dec 2019 19:42:55 +0100 Subject: [PATCH] =?utf8?q?=F0=9F=8E=A8=20Declare=20return=20value=20for=20?= =?utf8?q?ticker=20explicitely?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../pterodactylus/sone/web/notification/NotificationHandlerModule.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModule.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModule.kt index a3c10a6..e94be5b 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModule.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModule.kt @@ -24,6 +24,7 @@ import net.pterodactylus.sone.data.* import net.pterodactylus.sone.main.* import net.pterodactylus.sone.notify.* import net.pterodactylus.util.notify.* +import java.util.concurrent.* import java.util.concurrent.Executors.* import java.util.function.* import javax.inject.* @@ -75,7 +76,7 @@ class NotificationHandlerModule : AbstractModule() { ListNotification("sones-locked-notification", "sones", loaders.loadTemplate("/templates/notify/lockedSonesNotification.html"), dismissable = true) @Provides - fun getScheduledExecutorService() = + fun getScheduledExecutorService(): ScheduledExecutorService = newScheduledThreadPool(1) @Provides -- 2.7.4