Use hashMap instead of map

This commit is contained in:
Iaroslav 2020-06-24 15:54:17 +07:00
parent f475335df1
commit 9a3709624d
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -387,7 +387,7 @@ internal class AsmBuilder<T> internal constructor(
* Maps JVM primitive numbers boxed types to their letters of JVM signature convention. * Maps JVM primitive numbers boxed types to their letters of JVM signature convention.
*/ */
private val SIGNATURE_LETTERS: Map<Class<out Any>, String> by lazy { private val SIGNATURE_LETTERS: Map<Class<out Any>, String> by lazy {
mapOf( hashMapOf(
java.lang.Byte::class.java to "B", java.lang.Byte::class.java to "B",
java.lang.Short::class.java to "S", java.lang.Short::class.java to "S",
java.lang.Integer::class.java to "I", java.lang.Integer::class.java to "I",
@ -397,8 +397,8 @@ internal class AsmBuilder<T> internal constructor(
) )
} }
private val NUMBER_CONVERTER_METHODS by lazy { private val NUMBER_CONVERTER_METHODS: Map<String, String> by lazy {
mapOf( hashMapOf(
"B" to "byteValue", "B" to "byteValue",
"S" to "shortValue", "S" to "shortValue",
"I" to "intValue", "I" to "intValue",