Skip to content

Commit d299b07

Browse files
committed
♻️ change HashMap to LinkedHashMap for consistent iteration order
1 parent 2b3b10d commit d299b07

File tree

1 file changed

+1
-1
lines changed
  • qs-kotlin/src/main/kotlin/io/github/techouse/qskotlin/internal

1 file changed

+1
-1
lines changed

qs-kotlin/src/main/kotlin/io/github/techouse/qskotlin/internal/Decoder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ internal object Decoder {
198198
else -> Utils.combine<Any?>(emptyList<Any?>(), leaf)
199199
}
200200
} else {
201-
val mutableObj = HashMap<Any, Any?>(1)
201+
val mutableObj = LinkedHashMap<Any, Any?>(1)
202202
val cleanRoot =
203203
if (root.startsWith("[") && root.endsWith("]")) {
204204
root.substring(1, root.length - 1)

0 commit comments

Comments
 (0)