From d7b2dd139f7e17d149a50a2ee777d28dac64b9eb Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 13 Jan 2023 03:02:26 +0800 Subject: Upgrade loom, loader, fabric, gradle and development JDK. --- src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java') diff --git a/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java b/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java index ce14c8a..816cdc6 100644 --- a/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java +++ b/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java @@ -209,9 +209,6 @@ public final class ZipUtil { // 创建解压文件 entryFile = new File(entryFilePath); if (entryFile.exists()) { - // 检测文件是否允许删除,如果不允许删除,将会抛出SecurityException - SecurityManager securityManager = new SecurityManager(); - securityManager.checkDelete(entryFilePath); // 删除已存在的目标文件 if (!entryFile.delete()) throw new IOException(String.format("Failed to delete existing file %s", entryFile)); -- cgit v1.2.3