diff options
author | Keuin <[email protected]> | 2020-04-23 21:33:07 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2020-04-23 21:33:07 +0800 |
commit | 36451c24439b6fc0a407b3aae12048125539f8d5 (patch) | |
tree | e7382d2f10f7930a2ac048925110f6630323f597 /src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java | |
parent | f7f918f19b5d0597d21f03b7085425c3a93cc5f6 (diff) |
1.2.0-dev:1.2.0-dev
- Optimized ZipUtil.
- Added support for Asian characters (Chinese, Japanese, Korean) in backup name.
- Add validate for backup name (in file name).
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java')
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java b/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java index 5297dda..e819afc 100644 --- a/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java +++ b/src/main/java/com/keuin/kbackupfabric/util/ZipUtil.java @@ -172,7 +172,7 @@ public final class ZipUtil { BufferedInputStream bis; BufferedOutputStream bos; ZipFile zip = new ZipFile(zipFile); - Enumeration<ZipEntry> entries = (Enumeration<ZipEntry>) zip.entries(); + Enumeration<? extends ZipEntry> entries = zip.entries(); // 循环对压缩包里的每一个文件进行解压 while (entries.hasMoreElements()) { entry = entries.nextElement(); |