@ -135,11 +135,7 @@ internal class PomDocument(file: File) {
}
private fun Node.children(): List<Node> {
val result = ArrayList<Node>(childNodes.length)
return (0 until childNodes.length).map { childNodes.item(it) }
for (i in 0 until childNodes.length) {
result.add(childNodes.item(i))
return result
private fun List<Node>.asMap(): Map<String, Node> =