From 88c962484f695971f75a6e776c5cb8e1257fddac Mon Sep 17 00:00:00 2001 From: Shawn Pearce Date: Wed, 6 Mar 2013 12:47:37 -0800 Subject: [PATCH] Rename DfsPackFile getBitmap method to match PackFile There is no reason for these to differ in name. Match the shorter name used by PackFile. Change-Id: I2d3a299069acc5ce276b1b5439ff2258903c6ff3 --- .../src/org/eclipse/jgit/storage/dfs/DfsPackFile.java | 2 +- .../src/org/eclipse/jgit/storage/dfs/DfsReader.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackFile.java index 735e36670..ed6628596 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsPackFile.java @@ -276,7 +276,7 @@ public final class DfsPackFile { } } - PackBitmapIndex getPackBitmapIndex(DfsReader ctx) throws IOException { + PackBitmapIndex getBitmapIndex(DfsReader ctx) throws IOException { DfsBlockCache.Ref idxref = bitmapIndex; if (idxref != null) { PackBitmapIndex idx = idxref.get(); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java index 6d131abe1..7d5fb5b2a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/dfs/DfsReader.java @@ -146,7 +146,7 @@ public final class DfsReader extends ObjectReader implements ObjectReuseAsIs { @Override public BitmapIndex getBitmapIndex() throws IOException { for (DfsPackFile pack : db.getPacks()) { - PackBitmapIndex bitmapIndex = pack.getPackBitmapIndex(this); + PackBitmapIndex bitmapIndex = pack.getBitmapIndex(this); if (bitmapIndex != null) return new BitmapIndexImpl(bitmapIndex); } @@ -156,7 +156,7 @@ public final class DfsReader extends ObjectReader implements ObjectReuseAsIs { public Collection getCachedPacksAndUpdate( BitmapBuilder needBitmap) throws IOException { for (DfsPackFile pack : db.getPacks()) { - PackBitmapIndex bitmapIndex = pack.getPackBitmapIndex(this); + PackBitmapIndex bitmapIndex = pack.getBitmapIndex(this); if (needBitmap.removeAllOrNone(bitmapIndex)) return Collections. singletonList( new DfsCachedPack(pack));