Browse Source

Make BitmapBuilder.getBitmapIndex public

Every Bitmap in current JGit code has an associated BitmapIndex.  Make
it public in BitmapBuilder to make retrieving bitmaps to OR in from
that index easier.

Change-Id: I2773aa94d8b67f12194608e6317c0792a5de21e2
tags/v4.2.0.201511101648-m1
Jonathan Nieder 8 years ago
parent
commit
73474466eb

+ 2
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BitmapIndexImpl.java View File

@@ -318,7 +318,8 @@ public class BitmapIndexImpl implements BitmapIndex {
return true;
}

BitmapIndexImpl getBitmapIndex() {
@Override
public BitmapIndexImpl getBitmapIndex() {
return BitmapIndexImpl.this;
}
}

+ 7
- 0
org.eclipse.jgit/src/org/eclipse/jgit/lib/BitmapIndex.java View File

@@ -204,5 +204,12 @@ public interface BitmapIndex {

/** @return the number of elements in the bitmap. */
int cardinality();

/**
* The BitmapIndex for this BitmapBuilder.
*
* @since 4.2
*/
BitmapIndex getBitmapIndex();
}
}

Loading…
Cancel
Save