Fixed map impl

master
Robinson 2023-01-23 12:15:38 +01:00
parent c52bbc068b
commit 9a1d5b384e
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class TestTrie {
val keys = Arrays.asList(*strings)
var text: String
run {
val map = TreeMap<String, String>()
val map = HashMap<String, String>()
for (key in keys) {
map[key] = key
}
@ -60,7 +60,7 @@ class TestTrie {
val keys = Arrays.asList(*strings)
var text: String
run {
val map = TreeMap<ByteArray, String>()
val map = HashMap<ByteArray, String>()
for (key in keys) {
map[key] = String(key)
}