projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🚨 Suppress some warnings about unused parameters
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
notification
/
ConfigNotReadHandler.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt
b/src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt
index
e2a1ada
..
4ad525b
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/notification/ConfigNotReadHandler.kt
@@
-20,14
+20,15
@@
package net.pterodactylus.sone.web.notification
import com.google.common.eventbus.*
import net.pterodactylus.sone.core.event.*
import net.pterodactylus.util.notify.*
import com.google.common.eventbus.*
import net.pterodactylus.sone.core.event.*
import net.pterodactylus.util.notify.*
+import javax.inject.*
/**
* Handler for [ConfigNotRead] events.
*/
/**
* Handler for [ConfigNotRead] events.
*/
-class ConfigNotReadHandler
(private val notificationManager: NotificationManager,
private val notification: TemplateNotification) {
+class ConfigNotReadHandler
@Inject constructor(private val notificationManager: NotificationManager, @Named("configNotRead")
private val notification: TemplateNotification) {
@Subscribe
@Subscribe
- fun configNotRead(configNotRead: ConfigNotRead) {
+ fun configNotRead(
@Suppress("UNUSED_PARAMETER")
configNotRead: ConfigNotRead) {
notificationManager.addNotification(notification)
}
notificationManager.addNotification(notification)
}