From e77d095d6ef0d1ca3d42a0dd2b5965381993bb98 Mon Sep 17 00:00:00 2001 From: Paulo Roberto Massa Cereda Date: Sun, 5 May 2024 17:02:00 -0300 Subject: [PATCH] Replaced removeFirst() by removeAt(0), fixes #124 Definitely not the best solution, but at least it solves the immediate issue described in #124. Unfortunately, updating Kotlin to the latest version breaks our Gradle builds, so this is a workaround while we manage to update everything. --- .../kotlin/org/islandoftex/arara/core/dependencies/Graph.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/commonMain/kotlin/org/islandoftex/arara/core/dependencies/Graph.kt b/core/src/commonMain/kotlin/org/islandoftex/arara/core/dependencies/Graph.kt index 74e543b5d..ccbd29e58 100644 --- a/core/src/commonMain/kotlin/org/islandoftex/arara/core/dependencies/Graph.kt +++ b/core/src/commonMain/kotlin/org/islandoftex/arara/core/dependencies/Graph.kt @@ -59,7 +59,7 @@ internal open class Graph { .forEach { queue.add(it.key) } while (queue.isNotEmpty()) { - val vertex: T = queue.removeFirst() + val vertex: T = queue.removeAt(0) order.add(vertex) vertices[vertex]?.forEach { work[it] = work[it]!!.dec()