PackReverseIndex#findPosition: fix typo in method name

The package-private findPostion method has a type in it. The typo will
become more widespread when a file-based implementation class is
introduced.

Correct the spelling to findPosition before the file-based
implementation is introduced.

Change-Id: Ib285f5a3f9a333ace1782dae9b5d425505eb962a
Signed-off-by: Anna Papitto <annapapitto@google.com>
This commit is contained in:
Anna Papitto 2022-11-30 15:10:44 -08:00 committed by Ivan Frade
parent b082c58e0f
commit 0d10ebe560
2 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ public int findPosition(AnyObjectId objectId) {
long offset = packIndex.findOffset(objectId);
if (offset == -1)
return -1;
return reverseIndex.findPostion(offset);
return reverseIndex.findPosition(offset);
}
/** {@inheritDoc} */

View File

@ -158,7 +158,7 @@ public long findNextOffset(long offset, long maxOffset)
return index.getOffset(nth[ith + 1]);
}
int findPostion(long offset) {
int findPosition(long offset) {
return binarySearch(offset);
}