diff options
author | Keuin <[email protected]> | 2023-01-13 03:02:26 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-01-13 03:02:26 +0800 |
commit | d7b2dd139f7e17d149a50a2ee777d28dac64b9eb (patch) | |
tree | 82675255e459c60b108a2d7e8424cca08169b137 /src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java | |
parent | 5dc6e700cbcbc01833a02a193f660a286b934898 (diff) |
Upgrade loom, loader, fabric, gradle and development JDK.
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java | 3 |
1 files changed, 0 insertions, 3 deletions
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)); |