🐛 Store notification handlers in fields
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 10 Dec 2019 15:05:56 +0000 (16:05 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 11 Dec 2019 15:59:12 +0000 (16:59 +0100)
src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandler.kt

index 04449e7..74e5337 100644 (file)
@@ -23,11 +23,11 @@ import javax.inject.*
  * Container that causes notification handlers to be created and (more importantly) registered
  * on creation with the event bus.
  */
-@Suppress("UNUSED_PARAMETER")
+@Suppress("unused")
 class NotificationHandler @Inject constructor(
-               markPostKnownDuringFirstStartHandler: MarkPostKnownDuringFirstStartHandler,
-               newSoneHandler: NewSoneHandler,
-               newRemotePostHandler: NewRemotePostHandler,
-               soneLockedOnStartupHandler: SoneLockedOnStartupHandler,
-               soneLockedHandler: SoneLockedHandler
+               val markPostKnownDuringFirstStartHandler: MarkPostKnownDuringFirstStartHandler,
+               val newSoneHandler: NewSoneHandler,
+               val newRemotePostHandler: NewRemotePostHandler,
+               val soneLockedOnStartupHandler: SoneLockedOnStartupHandler,
+               val soneLockedHandler: SoneLockedHandler
 )