From f723411f94ad257ede4ea3a1fe84e8c724f7382b Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Mon, 7 Aug 2023 15:47:41 +0200 Subject: [PATCH] `MyBundle`: remove `SpreadOperator` suppression --- CHANGELOG.md | 1 + src/main/kotlin/org/jetbrains/plugins/template/MyBundle.kt | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c18bf1..b2b13f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - GitHub Actions: move the `Maximize Build Space` step from the `Build` job to `Inspect code` and `Verify plugin` jobs - Update `platformVersion` to `2022.3.3` - Change since/until build to `223-232.*` (2022.3-2023.2.*) +- `MyBundle`: remove `SpreadOperator` suppression - `MyBundle.properties`: remove unused `name` property ## [1.10.0] - 2023-08-04 diff --git a/src/main/kotlin/org/jetbrains/plugins/template/MyBundle.kt b/src/main/kotlin/org/jetbrains/plugins/template/MyBundle.kt index 66efe9a..0bcd9fd 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/MyBundle.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/MyBundle.kt @@ -9,12 +9,11 @@ private const val BUNDLE = "messages.MyBundle" object MyBundle : DynamicBundle(BUNDLE) { - @Suppress("SpreadOperator") @JvmStatic fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params) - @Suppress("SpreadOperator", "unused") + @Suppress("unused") @JvmStatic fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getLazyMessage(key, *params)