Suppress boxing warnings in DfsPackFile
Change-Id: I4b5a0a7ffdeaf7d7839787aa8b98ea9c72f70850
This commit is contained in:
parent
807cf678a0
commit
4f3db912ce
|
@ -156,6 +156,7 @@ public PackIndex getPackIndex(DfsReader ctx) throws IOException {
|
||||||
return idx(ctx);
|
return idx(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
private PackIndex idx(DfsReader ctx) throws IOException {
|
private PackIndex idx(DfsReader ctx) throws IOException {
|
||||||
if (index != null) {
|
if (index != null) {
|
||||||
return index;
|
return index;
|
||||||
|
@ -205,6 +206,7 @@ final boolean isGarbage() {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the bitmap index is not available, or is corrupt.
|
* the bitmap index is not available, or is corrupt.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
public PackBitmapIndex getBitmapIndex(DfsReader ctx) throws IOException {
|
public PackBitmapIndex getBitmapIndex(DfsReader ctx) throws IOException {
|
||||||
if (invalid || isGarbage() || !desc.hasFileExt(BITMAP_INDEX)) {
|
if (invalid || isGarbage() || !desc.hasFileExt(BITMAP_INDEX)) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -243,6 +245,7 @@ public PackBitmapIndex getBitmapIndex(DfsReader ctx) throws IOException {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the Commit Graph is not available, or is corrupt.
|
* the Commit Graph is not available, or is corrupt.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
public CommitGraph getCommitGraph(DfsReader ctx) throws IOException {
|
public CommitGraph getCommitGraph(DfsReader ctx) throws IOException {
|
||||||
if (invalid || isGarbage() || !desc.hasFileExt(COMMIT_GRAPH)) {
|
if (invalid || isGarbage() || !desc.hasFileExt(COMMIT_GRAPH)) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -280,6 +283,7 @@ public CommitGraph getCommitGraph(DfsReader ctx) throws IOException {
|
||||||
* @throws java.io.IOException
|
* @throws java.io.IOException
|
||||||
* the pack index is not available, or is corrupt
|
* the pack index is not available, or is corrupt
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
public PackReverseIndex getReverseIdx(DfsReader ctx) throws IOException {
|
public PackReverseIndex getReverseIdx(DfsReader ctx) throws IOException {
|
||||||
if (reverseIndex != null) {
|
if (reverseIndex != null) {
|
||||||
return reverseIndex;
|
return reverseIndex;
|
||||||
|
@ -304,6 +308,7 @@ public PackReverseIndex getReverseIdx(DfsReader ctx) throws IOException {
|
||||||
return reverseIndex;
|
return reverseIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
private PackObjectSizeIndex getObjectSizeIndex(DfsReader ctx)
|
private PackObjectSizeIndex getObjectSizeIndex(DfsReader ctx)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
if (objectSizeIndex != null) {
|
if (objectSizeIndex != null) {
|
||||||
|
@ -1169,6 +1174,7 @@ private void setCorrupt(long offset) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
private DfsBlockCache.Ref<PackIndex> loadPackIndex(
|
private DfsBlockCache.Ref<PackIndex> loadPackIndex(
|
||||||
DfsReader ctx, DfsStreamKey idxKey) throws IOException {
|
DfsReader ctx, DfsStreamKey idxKey) throws IOException {
|
||||||
try {
|
try {
|
||||||
|
@ -1198,6 +1204,7 @@ private DfsBlockCache.Ref<PackIndex> loadPackIndex(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
private DfsBlockCache.Ref<PackReverseIndex> loadReverseIdx(
|
private DfsBlockCache.Ref<PackReverseIndex> loadReverseIdx(
|
||||||
DfsReader ctx, DfsStreamKey revKey, PackIndex idx) {
|
DfsReader ctx, DfsStreamKey revKey, PackIndex idx) {
|
||||||
ctx.stats.readReverseIdx++;
|
ctx.stats.readReverseIdx++;
|
||||||
|
@ -1213,6 +1220,7 @@ private DfsBlockCache.Ref<PackReverseIndex> loadReverseIdx(
|
||||||
revidx);
|
revidx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("boxing")
|
||||||
private DfsBlockCache.Ref<PackObjectSizeIndex> loadObjectSizeIndex(
|
private DfsBlockCache.Ref<PackObjectSizeIndex> loadObjectSizeIndex(
|
||||||
DfsReader ctx, DfsStreamKey objectSizeIndexKey) throws IOException {
|
DfsReader ctx, DfsStreamKey objectSizeIndexKey) throws IOException {
|
||||||
ctx.stats.readObjectSizeIndex++;
|
ctx.stats.readObjectSizeIndex++;
|
||||||
|
|
Loading…
Reference in New Issue