From: David ‘Bombe’ Roden Date: Wed, 11 Dec 2019 18:42:55 +0000 (+0100) Subject: 🎨 Declare return value for ticker explicitely X-Git-Tag: v81^2~5^2~41 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0ec1b5b1d8bdf682f87909a1a0dea64290f6121d;p=Sone.git 🎨 Declare return value for ticker explicitely --- 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