From 2851d53b061f6d470ec37f75dbf4dbcc5a39c91a Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 18 Jul 2021 11:30:54 +0200 Subject: [PATCH] Add a @SafeVarargs annotation to the fire() method of EventSnowy.kt --- common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt b/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt index d82aca6..ba8d70f 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/EventSnowy.kt @@ -2,6 +2,7 @@ package fr.username404.snowygui interface EventSnowy { val type: String + @SafeVarargs fun fire(vararg args: T?) { useKey(type).forEach { it(args)