From e2cb47ae70f782dd6216000bb8a97d8398e1b3e5 Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Fri, 11 Feb 2022 23:43:43 +0800 Subject: [PATCH] ... --- .../yukihookapi/hook/core/finder/ConstructorFinder.kt | 8 ++++---- .../yukihookapi/hook/core/finder/MethodFinder.kt | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 } /**