From 411d234ff20173b621452356efc8dd64f0eb949e Mon Sep 17 00:00:00 2001 From: MisakaTAT Date: Mon, 26 Feb 2024 15:16:48 +0800 Subject: [PATCH] :bookmark: RELEASE v2.1.8 --- build.gradle.kts | 2 +- src/main/java/com/mikuac/shiro/core/Bot.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6c79d92..899f6b7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ @file:Suppress("SpellCheckingInspection") group = "com.mikuac" -version = "2.1.7" +version = "2.1.8" plugins { signing diff --git a/src/main/java/com/mikuac/shiro/core/Bot.java b/src/main/java/com/mikuac/shiro/core/Bot.java index fc7de37..c9e8568 100644 --- a/src/main/java/com/mikuac/shiro/core/Bot.java +++ b/src/main/java/com/mikuac/shiro/core/Bot.java @@ -881,7 +881,7 @@ public ActionData customRequest(ActionPath action, Map params) { */ public ActionData customRequest(ActionPath action, Map params, Class clazz) { JSONObject result = actionHandler.action(session, action, params); - return result != null ? result.to(new TypeReference>(clazz) { + return result != null ? result.to(new TypeReference<>(clazz) { }) : null; }