class TickerShutdown @Inject constructor(@Named("notification") private val notificationTicker: ScheduledExecutorService) {
@Subscribe
- fun shutdown(shutdown: Shutdown) {
+ fun shutdown(@Suppress("UNUSED_PARAMETER") shutdown: Shutdown) {
notificationTicker.shutdown()
}
class ConfigNotReadHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("configNotRead") private val notification: TemplateNotification) {
@Subscribe
- fun configNotRead(configNotRead: ConfigNotRead) {
+ fun configNotRead(@Suppress("UNUSED_PARAMETER") configNotRead: ConfigNotRead) {
notificationManager.addNotification(notification)
}
class FirstStartHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("firstStart") private val notification: TemplateNotification) {
@Subscribe
- fun firstStart(firstStart: FirstStart) {
+ fun firstStart(@Suppress("UNUSED_PARAMETER") firstStart: FirstStart) {
notificationManager.addNotification(notification)
}
@Named("notification") private val ticker: ScheduledExecutorService) {
@Subscribe
- fun startup(startup: Startup) {
+ fun startup(@Suppress("UNUSED_PARAMETER") startup: Startup) {
notificationManager.addNotification(notification)
ticker.schedule({ notificationManager.removeNotification(notification) }, 2, MINUTES)
}
class WebOfTrustHandler @Inject constructor(private val notificationManager: NotificationManager, @Named("webOfTrust") private val notification: TemplateNotification) {
@Subscribe
- fun webOfTrustAppeared(webOfTrustAppeared: WebOfTrustAppeared) {
+ fun webOfTrustAppeared(@Suppress("UNUSED_PARAMETER") webOfTrustAppeared: WebOfTrustAppeared) {
notificationManager.removeNotification(notification)
}
@Subscribe
- fun webOfTrustDisappeared(webOfTrustDisappeared: WebOfTrustDisappeared) {
+ fun webOfTrustDisappeared(@Suppress("UNUSED_PARAMETER") webOfTrustDisappeared: WebOfTrustDisappeared) {
notificationManager.addNotification(notification)
}
private class WebOfTrustAppearedCatcher(private val received: () -> Unit) {
@Subscribe
- fun webOfTrustAppeared(webOfTrustAppeared: WebOfTrustAppeared) {
+ fun webOfTrustAppeared(@Suppress("UNUSED_PARAMETER") webOfTrustAppeared: WebOfTrustAppeared) {
received()
}
}
private class WebOfTrustDisappearedCatcher(private val received: () -> Unit) {
@Subscribe
- fun webOfTrustDisappeared(webOfTrustDisappeared: WebOfTrustDisappeared) {
+ fun webOfTrustDisappeared(@Suppress("UNUSED_PARAMETER") webOfTrustDisappeared: WebOfTrustDisappeared) {
received()
}
}
private class FirstStartListener(private val firstStartReceived: AtomicBoolean) {
@Subscribe
- fun firstStart(firstStart: FirstStart) {
+ fun firstStart(@Suppress("UNUSED_PARAMETER") firstStart: FirstStart) {
firstStartReceived.set(true)
}
}
private class ConfigNotReadListener(private val configNotReadReceiver: AtomicBoolean) {
@Subscribe
- fun configNotRead(configNotRead: ConfigNotRead) {
+ fun configNotRead(@Suppress("UNUSED_PARAMETER") configNotRead: ConfigNotRead) {
configNotReadReceiver.set(true)
}
}
private class StartupListener(private val startupReceived: () -> Unit) {
@Subscribe
- fun startup(startup: Startup) {
+ fun startup(@Suppress("UNUSED_PARAMETER") startup: Startup) {
startupReceived()
}
}
private class ShutdownListener(private val shutdownReceived: () -> Unit) {
@Subscribe
- fun shutdown(shutdown: Shutdown) {
+ fun shutdown(@Suppress("UNUSED_PARAMETER") shutdown: Shutdown) {
shutdownReceived()
}
}