From e0b8734c2a21f7d6b6a7c6f375e0e54d8f6a46f5 Mon Sep 17 00:00:00 2001 From: BingZi-233 Date: Tue, 24 Oct 2023 09:56:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DGSON=E6=B3=9B=E5=8C=96?= =?UTF-8?q?=E6=8A=B5=E6=8A=97=E7=89=B9=E6=AE=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bingiz/bilibili/video/internal/cache/CookieCache.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/online/bingiz/bilibili/video/internal/cache/CookieCache.kt b/src/main/kotlin/online/bingiz/bilibili/video/internal/cache/CookieCache.kt index 0f0d50a..c4717f1 100644 --- a/src/main/kotlin/online/bingiz/bilibili/video/internal/cache/CookieCache.kt +++ b/src/main/kotlin/online/bingiz/bilibili/video/internal/cache/CookieCache.kt @@ -13,7 +13,7 @@ import java.util.* private val gson: Gson = Gson() // 泛化抵抗 -private val listStringType = TypeToken>().type +private val listStringType = object : TypeToken>() {}.type val cookieCache = Caffeine.newBuilder() .maximumSize(100) @@ -26,5 +26,5 @@ val cookieCache = Caffeine.newBuilder() .build> { Bukkit.getPlayer(it)?.getDataContainer()?.get("cookie")?.let { json -> gson.fromJson(json, listStringType) - } ?: ?: infoMessageAsLang ("WarnPlayerNotOnline") + } } \ No newline at end of file