diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt index b5ca527b..ed48055b 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/ConstructorFinder.kt @@ -55,11 +55,11 @@ class ConstructorFinder(private val hookInstance: YukiHookCreater.MemberHookCrea * - ❗无参 [Constructor] 不要使用此方法 * * - ❗有参 [Constructor] 必须使用此方法设定参数 - * @param param 参数数组 + * @param paramType 参数类型数组 */ - fun param(vararg param: Class<*>) { - if (param.isEmpty()) error("param is empty, please delete param() method") - params = param + fun param(vararg paramType: Class<*>) { + if (paramType.isEmpty()) error("param is empty, please delete param() method") + params = paramType } /** diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt index e446dd34..df289bad 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/core/finder/MethodFinder.kt @@ -69,11 +69,11 @@ class MethodFinder(private val hookInstance: YukiHookCreater.MemberHookCreater, * - ❗无参 [Method] 不要使用此方法 * * - ❗有参 [Method] 必须使用此方法设定参数 - * @param param 参数数组 + * @param paramType 参数类型数组 */ - fun param(vararg param: Class<*>) { - if (param.isEmpty()) error("param is empty, please delete param() method") - params = param + fun param(vararg paramType: Class<*>) { + if (paramType.isEmpty()) error("param is empty, please delete param() method") + params = paramType } /**