From ced7f673c591704baf66104e46ea0dac0489f422 Mon Sep 17 00:00:00 2001 From: MiniDay <372403923@qq.com> Date: Thu, 26 Oct 2023 15:31:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B91.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mc/plugin/core/common/util/CoreUtils.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/CoreUtils.java b/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/CoreUtils.java index 652cc8a..a38a48d 100644 --- a/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/CoreUtils.java +++ b/core-common/src/main/java/cn/hamster3/mc/plugin/core/common/util/CoreUtils.java @@ -13,21 +13,33 @@ import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.time.Duration; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.ScheduledExecutorService; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; @SuppressWarnings("unused") public final class CoreUtils { /** - * @deprecated 建议使用 {@link CoreAPI#getGson()} + * @deprecated 使用 {@link CoreAPI#getGson()} */ @Deprecated public static Gson GSON = CoreAPI.getInstance().getGson(); /** - * @deprecated 建议使用 {@link CoreAPI#getHumanGson()} + * @deprecated 使用 {@link CoreAPI#getHumanGson()} */ @Deprecated public static Gson GSON_HUMAN = CoreAPI.getInstance().getHumanGson(); + /** + * @deprecated 使用 {@link CoreAPI#getExecutorService()} + */ + @Deprecated + public static ExecutorService WORKER_EXECUTOR = CoreAPI.getInstance().getExecutorService(); + /** + * @deprecated 使用 {@link CoreAPI#getScheduledExecutorService()} + */ + @Deprecated + public static ScheduledExecutorService SCHEDULED_EXECUTOR = CoreAPI.getInstance().getScheduledExecutorService(); private CoreUtils() { }