Finally, official Java 8 support

This commit is contained in:
topjohnwu
2017-04-05 17:02:18 +08:00
parent 411b600e14
commit ae88d3054d
6 changed files with 7 additions and 15 deletions

View File

@ -997,7 +997,7 @@ public class ZipUtils {
return manifest;
}
public Enumeration<JarEntry> entries() {
Iterator<Entry<String, Pair<JarEntry, ByteArrayOutputStream> >> i = entrySet().iterator();
Iterator<Map.Entry<String, Pair<JarEntry, ByteArrayOutputStream> >> i = entrySet().iterator();
ArrayList<JarEntry> list = new ArrayList<>();
while (i.hasNext())
list.add(i.next().getValue().first);