From 0d10ebe5602bc31cd7176f0df8470b4ba6014d89 Mon Sep 17 00:00:00 2001 From: Anna Papitto Date: Wed, 30 Nov 2022 15:10:44 -0800 Subject: [PATCH] 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 --- .../eclipse/jgit/internal/storage/file/PackBitmapIndexV1.java | 2 +- .../eclipse/jgit/internal/storage/file/PackReverseIndex.java | 2 +- 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 21aba3e6a..988dc6c4f 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 ee458e27b..1a5adb4a1 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); }