Skip to content

Commit

Permalink
百度云解压bug修改
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Mar 14, 2018
1 parent 4e28ea8 commit bf6d6fd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions common/src/main/java/lee/study/down/io/BdyZip.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,7 @@ private static boolean isRight(List<String> centralList, BdyZipEntry fixEntry,
public static List<BdyZipEntry> getFixedEntryList(FileChannel fileChannel,
BdyUnzipCallback callback) throws IOException {
List<BdyZipEntry> list = new ArrayList<>();
List<String> centralList;
try {
centralList = getCentralList(fileChannel);
} catch (IllegalArgumentException e) {
centralList = new ArrayList<>();
} catch (IOException e) {
throw e;
}
List<String> centralList = getCentralList(fileChannel);
fileChannel.position(0);
while (true) {
BdyZipEntry entry = getNextFixedBdyZipEntry(fileChannel, centralList, callback);
Expand Down

0 comments on commit bf6d6fd

Please sign in to comment.