aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Papitto <annapapitto@google.com>2022-11-30 15:10:44 -0800
committerIvan Frade <ifrade@google.com>2022-12-16 16:48:43 -0500
commit0d10ebe5602bc31cd7176f0df8470b4ba6014d89 (patch)
tree1c349d6cb46aac58ce9a710b955f0f6030a6212e
parentb082c58e0ff3e829071e90b47df022e77cd3dea2 (diff)
downloadjgit-0d10ebe5602bc31cd7176f0df8470b4ba6014d89.tar.gz
jgit-0d10ebe5602bc31cd7176f0df8470b4ba6014d89.zip
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>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndex.java2
2 files changed, 2 insertions, 2 deletions
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 21aba3e6a3..988dc6c4ff 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 @@ class PackBitmapIndexV1 extends BasePackBitmapIndex {
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 ee458e27ba..1a5adb4a16 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 class PackReverseIndex {
return index.getOffset(nth[ith + 1]);
}
- int findPostion(long offset) {
+ int findPosition(long offset) {
return binarySearch(offset);
}