diff --git a/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt b/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt index 3b30533..4a6fa60 100755 --- a/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt +++ b/src/main/kotlin/org/openrewrite/RecipeDescriptorExtensions.kt @@ -51,7 +51,7 @@ fun OptionDescriptor.asYaml(indentation: Int = 0): String { val prefix = prefixBuilder.toString() val formattedValue = if (value is Array<*>) { - val asArray = value asArray<*> + val asArray = value as Array<*> "[${asArray.joinToString(", ")}]" } else { value