feat: 兼容1.0.0
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
Reference in New Issue
Block a user