]> source.dussan.org Git - jgit.git/commitdiff
PackReverseIndex: Fix javadoc in position methods 10/1200910/4
authorjackdt@google.com <jackdt@google.com>
Mon, 9 Sep 2024 21:05:52 +0000 (14:05 -0700)
committerIvan Frade <ifrade@google.com>
Mon, 9 Sep 2024 21:24:56 +0000 (21:24 +0000)
Position in the API refers to reverse-index position
(offset order), not primary index position (sha1 order)

Change-Id: I7dbe314dac1b3a128dd1c4ed93b9be28fd0802cc

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndex.java

index ef9753cd79227da4c62fe58417f40c008e8c3bdb..720a3bcbff51f07c85c15d974daa60408bf47a67 100644 (file)
@@ -75,20 +75,20 @@ public interface PackReverseIndex {
                        throws CorruptObjectException;
 
        /**
-        * Find the position in the primary index of the object at the given pack
+        * Find the position in the reverse index of the object at the given pack
         * offset.
         *
         * @param offset
         *            the pack offset of the object
-        * @return the position in the primary index of the object
+        * @return the position in the reverse index of the object
         */
        int findPosition(long offset);
 
        /**
-        * Find the object that is in the given position in the primary index.
+        * Find the object that is in the given position in the reverse index.
         *
         * @param nthPosition
-        *            the position of the object in the primary index
+        *            the position of the object in the reverse index
         * @return the object in that position
         */
        ObjectId findObjectByPosition(int nthPosition);