From 51291f4eb7927f34eeb8b3cc5fd145524a6c32e1 Mon Sep 17 00:00:00 2001 From: soywiz Date: Wed, 3 Jul 2024 14:10:40 +0200 Subject: [PATCH] Do not use JDK-21 API --- .../main/kotlin/korlibs/korge/gradle/ProjectDependencyTree.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/korlibs/korge/gradle/ProjectDependencyTree.kt b/buildSrc/src/main/kotlin/korlibs/korge/gradle/ProjectDependencyTree.kt index de2eb6e79a..f8e127d5a2 100644 --- a/buildSrc/src/main/kotlin/korlibs/korge/gradle/ProjectDependencyTree.kt +++ b/buildSrc/src/main/kotlin/korlibs/korge/gradle/ProjectDependencyTree.kt @@ -24,7 +24,7 @@ fun Project.allDependantProjects(): Set { val out = LinkedHashSet() val explored = LinkedHashSet() while (toExplore.isNotEmpty()) { - val item = toExplore.removeLast() + val item = toExplore.removeAt(toExplore.size - 1) if (item in explored) continue val directDependencies = item.directDependantProjects() explored += item