Skip to content

Commit 54c4379

Browse files
BaseFinder: remove explicit type cast (#99)
1 parent 34a701a commit 54c4379

File tree

1 file changed

+2
-2
lines changed
  • yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/finder/base

1 file changed

+2
-2
lines changed

yukihookapi-core/src/main/java/com/highcapable/yukihookapi/hook/core/finder/base/BaseFinder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ abstract class BaseFinder {
106106
is String -> runCatching { toClass(loader) }.getOrNull() ?: UndefinedType
107107
is VariousClass -> runCatching { get(loader) }.getOrNull() ?: UndefinedType
108108
else -> error("$tag match type \"$javaClass\" not allowed")
109-
} as Class<*>?
109+
}
110110

111111
/**
112112
* 返回结果实现类
@@ -131,4 +131,4 @@ abstract class BaseFinder {
131131
* - 此功能交由方法体自动完成 - 你不应该手动继承此接口
132132
*/
133133
interface BaseResult
134-
}
134+
}

0 commit comments

Comments
 (0)