mirror of
https://github.com/HighCapable/YukiReflection.git
synced 2025-09-07 03:05:21 +08:00
refactor: change ArrayMap (Android) to HashMap
This commit is contained in:
@@ -31,7 +31,6 @@
|
|||||||
|
|
||||||
package com.highcapable.yukireflection.finder.base.rules
|
package com.highcapable.yukireflection.finder.base.rules
|
||||||
|
|
||||||
import android.util.ArrayMap
|
|
||||||
import java.lang.reflect.Field
|
import java.lang.reflect.Field
|
||||||
import java.lang.reflect.Member
|
import java.lang.reflect.Member
|
||||||
import java.lang.reflect.Method
|
import java.lang.reflect.Method
|
||||||
@@ -49,7 +48,7 @@ class ModifierRules private constructor(private val instance: Any) {
|
|||||||
internal companion object {
|
internal companion object {
|
||||||
|
|
||||||
/** 当前实例数组 */
|
/** 当前实例数组 */
|
||||||
private val instances = ArrayMap<Long, ModifierRules>()
|
private val instances = HashMap<Long, ModifierRules>()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取模板字符串数组
|
* 获取模板字符串数组
|
||||||
|
@@ -30,7 +30,6 @@
|
|||||||
|
|
||||||
package com.highcapable.yukireflection.finder.tools
|
package com.highcapable.yukireflection.finder.tools
|
||||||
|
|
||||||
import android.util.ArrayMap
|
|
||||||
import com.highcapable.yukireflection.YukiReflection
|
import com.highcapable.yukireflection.YukiReflection
|
||||||
import com.highcapable.yukireflection.factory.classOf
|
import com.highcapable.yukireflection.factory.classOf
|
||||||
import com.highcapable.yukireflection.factory.current
|
import com.highcapable.yukireflection.factory.current
|
||||||
@@ -87,10 +86,10 @@ internal object ReflectionTool {
|
|||||||
private object MemoryCache {
|
private object MemoryCache {
|
||||||
|
|
||||||
/** 缓存的 [Class] 列表数组 */
|
/** 缓存的 [Class] 列表数组 */
|
||||||
val dexClassListData = ArrayMap<String, List<String>>()
|
val dexClassListData = HashMap<String, List<String>>()
|
||||||
|
|
||||||
/** 缓存的 [Class] 对象数组 */
|
/** 缓存的 [Class] 对象数组 */
|
||||||
val classData = ArrayMap<String, Class<*>?>()
|
val classData = HashMap<String, Class<*>?>()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user