summaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java3
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));