From: David ‘Bombe’ Roden Date: Tue, 10 Dec 2019 15:05:56 +0000 (+0100) Subject: 🐛 Store notification handlers in fields X-Git-Tag: v81^2~5^2~71 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bfa49c59a39fddd8bed21bdac98d8bd21e8cb525;p=Sone.git 🐛 Store notification handlers in fields --- diff --git a/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandler.kt b/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandler.kt index 04449e7..74e5337 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandler.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/notification/NotificationHandler.kt @@ -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 )