Merge branch '2.2.x' into 2.3.x

pull/23585/head
Phillip Webb 4 years ago
commit a249a1a3d1

@ -377,7 +377,7 @@ class JarFileEntries implements CentralDirectoryVisitor, Iterable<JarEntry> {
int hashCode = AsciiBytes.hashCode(name);
int index = getFirstIndex(hashCode);
while (index >= 0 && index < this.size && this.hashCodes[index] == hashCode) {
CentralDirectoryFileHeader candidate = getEntry(index, CentralDirectoryFileHeader.class, false, null);
FileHeader candidate = getEntry(index, FileHeader.class, false, null);
if (candidate.hasName(name, NO_SUFFIX)) {
return index;
}

Loading…
Cancel
Save