diff --git a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt index be5a0508..3ce56f1c 100644 --- a/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt +++ b/yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt @@ -106,7 +106,7 @@ abstract class BaseFinder { is String -> runCatching { toClass(loader) }.getOrNull() ?: UndefinedType is VariousClass -> runCatching { get(loader) }.getOrNull() ?: UndefinedType else -> error("$tag match type \"$javaClass\" not allowed") - } as Class<*>? + } /** * 返回结果实现类 @@ -131,4 +131,4 @@ abstract class BaseFinder { * - 此功能交由方法体自动完成 - 你不应该手动继承此接口 */ interface BaseResult -} \ No newline at end of file +}