| commit | 0d10ebe5602bc31cd7176f0df8470b4ba6014d89 | [log] [tgz] |
|---|---|---|
| author | Anna Papitto <annapapitto@google.com> | Wed Nov 30 15:10:44 2022 -0800 |
| committer | Ivan Frade <ifrade@google.com> | Fri Dec 16 16:48:43 2022 -0500 |
| tree | 1c349d6cb46aac58ce9a710b955f0f6030a6212e | |
| parent | b082c58e0ff3e829071e90b47df022e77cd3dea2 [diff] |
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>
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java index 21aba3e..988dc6c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java
@@ -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} */
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndex.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndex.java index ee458e2..1a5adb4 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndex.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndex.java
@@ -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); }