Merge branch '2.2.x' into 2.3.x

This commit is contained in:
Phillip Webb 2020-09-14 13:52:22 -07:00
commit a249a1a3d1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}