From 5c623b1e6c69f2f67076d668157f9ad6be54422d Mon Sep 17 00:00:00 2001 From: Sam Delmerico Date: Tue, 2 Apr 2024 12:24:02 -0700 Subject: [PATCH] PackBitmapIndexBuilder: make StoredEntry constructor public This POD data structure can be used externally Change-Id: I464c45b93d0a56deaadbfe31df57a87e1054741c --- .../storage/file/PackBitmapIndexBuilder.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java index d73c7ce887..03d6948e90 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackBitmapIndexBuilder.java @@ -335,7 +335,21 @@ public class PackBitmapIndexBuilder extends BasePackBitmapIndex { private final int xorOffset; private final int flags; - StoredEntry(long objectId, EWAHCompressedBitmap bitmap, + /** + * Create a StoredEntry + * + * @param objectId + * offset of this object into the pack index + * @param bitmap + * bitmap associated with this object + * @param xorOffset + * offset of the bitmap against which this bitmap is + * xor-compressed. If 0, then this bitmap is not + * xor-compressed against any other bitmap + * @param flags + * flags for this bitmap + */ + public StoredEntry(long objectId, EWAHCompressedBitmap bitmap, int xorOffset, int flags) { this.objectId = objectId; this.bitmap = bitmap; -- 2.39.5