🎨 Declare return value for ticker explicitely
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 11 Dec 2019 18:42:55 +0000 (19:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 11 Dec 2019 18:47:36 +0000 (19:47 +0100)
src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModule.kt

index a3c10a6..e94be5b 100644 (file)
@@ -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<Sone>("sones-locked-notification", "sones", loaders.loadTemplate("/templates/notify/lockedSonesNotification.html"), dismissable = true)
 
        @Provides
-       fun getScheduledExecutorService() =
+       fun getScheduledExecutorService(): ScheduledExecutorService =
                        newScheduledThreadPool(1)
 
        @Provides