From f6a084c0fb657da5a3d15ad239242aa88ddffff0 Mon Sep 17 00:00:00 2001 From: GeorgCantor Date: Sat, 28 Sep 2024 17:30:48 +0300 Subject: [PATCH] Update PomDocument.kt --- .../compose/internal/publishing/utils/PomDocument.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build-helpers/publishing/src/main/kotlin/org/jetbrains/compose/internal/publishing/utils/PomDocument.kt b/build-helpers/publishing/src/main/kotlin/org/jetbrains/compose/internal/publishing/utils/PomDocument.kt index 007460faa5c..4903f800f19 100644 --- a/build-helpers/publishing/src/main/kotlin/org/jetbrains/compose/internal/publishing/utils/PomDocument.kt +++ b/build-helpers/publishing/src/main/kotlin/org/jetbrains/compose/internal/publishing/utils/PomDocument.kt @@ -135,11 +135,7 @@ internal class PomDocument(file: File) { } private fun Node.children(): List { - val result = ArrayList(childNodes.length) - for (i in 0 until childNodes.length) { - result.add(childNodes.item(i)) - } - return result + return (0 until childNodes.length).map { childNodes.item(it) } } private fun List.asMap(): Map =