From 7c9556678b5d75bcd265debe967ad4ef1287da2e Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Fri, 25 Mar 2022 01:13:43 +0800 Subject: [PATCH] Merge code --- .../com/highcapable/yukihookapi/hook/param/HookParam.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt index ab26887d..22422648 100644 --- a/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt +++ b/yukihookapi/src/api/kotlin/com/highcapable/yukihookapi/hook/param/HookParam.kt @@ -48,14 +48,14 @@ class HookParam(private val wrapper: HookParamWrapper) { /** * 获取当前 Hook 对象 [method] or [constructor] 的参数对象数组第一位 - * @return [Array] + * @return [Any] or null * @throws IllegalStateException 如果数组为空 */ val firstArgs get() = if (args.isNotEmpty()) args[0] else error("HookParam args is empty") /** * 获取当前 Hook 对象 [method] or [constructor] 的参数对象数组最后一位 - * @return [Array] + * @return [Any] or null * @throws IllegalStateException 如果数组为空 */ val lastArgs get() = if (args.isNotEmpty()) args[args.lastIndex] else error("HookParam args is empty")