Add a @SafeVarargs annotation to the fire() method of EventSnowy.kt
This commit is contained in:
parent
dd2234be71
commit
2851d53b06
|
@ -2,6 +2,7 @@ package fr.username404.snowygui
|
|||
|
||||
interface EventSnowy {
|
||||
val type: String
|
||||
@SafeVarargs
|
||||
fun <T> fire(vararg args: T?) {
|
||||
useKey(type).forEach {
|
||||
it(args)
|
||||
|
|
Loading…
Reference in New Issue