refactor: change ArrayMap (Android) to HashMap

This commit is contained in:
2023-09-23 20:58:31 +08:00
parent f2b90caab0
commit 8718c14e1b
2 changed files with 3 additions and 5 deletions

View File

@@ -31,7 +31,6 @@
package com.highcapable.yukireflection.finder.base.rules
import android.util.ArrayMap
import java.lang.reflect.Field
import java.lang.reflect.Member
import java.lang.reflect.Method
@@ -49,7 +48,7 @@ class ModifierRules private constructor(private val instance: Any) {
internal companion object {
/** 当前实例数组 */
private val instances = ArrayMap<Long, ModifierRules>()
private val instances = HashMap<Long, ModifierRules>()
/**
* 获取模板字符串数组

View File

@@ -30,7 +30,6 @@
package com.highcapable.yukireflection.finder.tools
import android.util.ArrayMap
import com.highcapable.yukireflection.YukiReflection
import com.highcapable.yukireflection.factory.classOf
import com.highcapable.yukireflection.factory.current
@@ -87,10 +86,10 @@ internal object ReflectionTool {
private object MemoryCache {
/** 缓存的 [Class] 列表数组 */
val dexClassListData = ArrayMap<String, List<String>>()
val dexClassListData = HashMap<String, List<String>>()
/** 缓存的 [Class] 对象数组 */
val classData = ArrayMap<String, Class<*>?>()
val classData = HashMap<String, Class<*>?>()
}
/**