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:
parent
b082c58e0f
commit
0d10ebe560
|
@ -220,7 +220,7 @@ public int findPosition(AnyObjectId objectId) {
|
||||||
long offset = packIndex.findOffset(objectId);
|
long offset = packIndex.findOffset(objectId);
|
||||||
if (offset == -1)
|
if (offset == -1)
|
||||||
return -1;
|
return -1;
|
||||||
return reverseIndex.findPostion(offset);
|
return reverseIndex.findPosition(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|
|
@ -158,7 +158,7 @@ public long findNextOffset(long offset, long maxOffset)
|
||||||
return index.getOffset(nth[ith + 1]);
|
return index.getOffset(nth[ith + 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int findPostion(long offset) {
|
int findPosition(long offset) {
|
||||||
return binarySearch(offset);
|
return binarySearch(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue