feat: 兼容1.0.0

This commit is contained in:
2023-10-26 15:31:20 +08:00
parent 7aaaeb046d
commit ced7f673c5

View File

@@ -13,21 +13,33 @@ import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import java.time.Duration; import java.time.Duration;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream; import java.util.zip.ZipOutputStream;
@SuppressWarnings("unused") @SuppressWarnings("unused")
public final class CoreUtils { public final class CoreUtils {
/** /**
* @deprecated 建议使用 {@link CoreAPI#getGson()} * @deprecated 使用 {@link CoreAPI#getGson()}
*/ */
@Deprecated @Deprecated
public static Gson GSON = CoreAPI.getInstance().getGson(); public static Gson GSON = CoreAPI.getInstance().getGson();
/** /**
* @deprecated 建议使用 {@link CoreAPI#getHumanGson()} * @deprecated 使用 {@link CoreAPI#getHumanGson()}
*/ */
@Deprecated @Deprecated
public static Gson GSON_HUMAN = CoreAPI.getInstance().getHumanGson(); 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() { private CoreUtils() {
} }