From e701e486581c7bb7f26919e98915314dc6e6d9ff Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Fri, 20 Dec 2024 22:32:48 -0500 Subject: [PATCH] Minor bit --- .../redacted/gradle/RedactedGradleSubplugin.kt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt b/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt index 33d828f..9da66fa 100644 --- a/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt +++ b/redacted-compiler-plugin-gradle/src/main/kotlin/dev/zacsweers/redacted/gradle/RedactedGradleSubplugin.kt @@ -46,18 +46,10 @@ public class RedactedGradleSubplugin : KotlinCompilerPluginSupportPlugin { val extension = project.extensions.getByType(RedactedPluginExtension::class.java) @Suppress("DEPRECATION") val annotations = - extension.redactedAnnotations.zip(extension.redactedAnnotation) { - annotations, - singleAnnotation -> - annotations + singleAnnotation - } + extension.redactedAnnotations.zip(extension.redactedAnnotation, Set::plus) @Suppress("DEPRECATION") val unredactedAnnotations = - extension.unredactedAnnotations.zip(extension.unredactedAnnotation) { - annotations, - singleAnnotation -> - annotations + singleAnnotation - } + extension.unredactedAnnotations.zip(extension.unredactedAnnotation, Set::plus) // Default annotation is used, so add it as a dependency // Note only multiplatform, jvm/android, and js are supported. Anyone else is on their own.