Skip to content

Commit

Permalink
Merge branch '2.4.x' into 2.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Sep 21, 2021
2 parents 06eff8a + ec12d51 commit 40d65a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void visitStart(CentralDirectoryEndRecord endRecord, RandomAccessData cen
int maxSize = endRecord.getNumberOfRecords();
this.centralDirectoryData = centralDirectoryData;
this.hashCodes = new int[maxSize];
this.centralDirectoryOffsets = Offsets.get(endRecord);
this.centralDirectoryOffsets = Offsets.from(endRecord);
this.positions = new int[maxSize];
}

Expand Down Expand Up @@ -440,7 +440,7 @@ private interface Offsets {

void swap(int i, int j);

static Offsets get(CentralDirectoryEndRecord endRecord) {
static Offsets from(CentralDirectoryEndRecord endRecord) {
int size = endRecord.getNumberOfRecords();
return endRecord.isZip64() ? new Zip64Offsets(size) : new ZipOffsets(size);
}
Expand Down

0 comments on commit 40d65a7

Please sign in to comment.