summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-08-31 15:11:50 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-08-31 15:11:50 +0200
commit4f3db912ce920c6a34092a5d541861a5399e1a80 (patch)
tree0ed0b205dafbbd595889cd41d93bf82d90c89fa0 /org.eclipse.jgit
parent807cf678a05e6da2bd7d483a21c1e87229cd99a0 (diff)
downloadjgit-4f3db912ce920c6a34092a5d541861a5399e1a80.tar.gz
jgit-4f3db912ce920c6a34092a5d541861a5399e1a80.zip
Suppress boxing warnings in DfsPackFile
Change-Id: I4b5a0a7ffdeaf7d7839787aa8b98ea9c72f70850
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
index 715c0c76bf..f80e5d1837 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java
@@ -156,6 +156,7 @@ public final class DfsPackFile extends BlockBasedFile {
return idx(ctx);
}
+ @SuppressWarnings("boxing")
private PackIndex idx(DfsReader ctx) throws IOException {
if (index != null) {
return index;
@@ -205,6 +206,7 @@ public final class DfsPackFile extends BlockBasedFile {
* @throws java.io.IOException
* the bitmap index is not available, or is corrupt.
*/
+ @SuppressWarnings("boxing")
public PackBitmapIndex getBitmapIndex(DfsReader ctx) throws IOException {
if (invalid || isGarbage() || !desc.hasFileExt(BITMAP_INDEX)) {
return null;
@@ -243,6 +245,7 @@ public final class DfsPackFile extends BlockBasedFile {
* @throws java.io.IOException
* the Commit Graph is not available, or is corrupt.
*/
+ @SuppressWarnings("boxing")
public CommitGraph getCommitGraph(DfsReader ctx) throws IOException {
if (invalid || isGarbage() || !desc.hasFileExt(COMMIT_GRAPH)) {
return null;
@@ -280,6 +283,7 @@ public final class DfsPackFile extends BlockBasedFile {
* @throws java.io.IOException
* the pack index is not available, or is corrupt
*/
+ @SuppressWarnings("boxing")
public PackReverseIndex getReverseIdx(DfsReader ctx) throws IOException {
if (reverseIndex != null) {
return reverseIndex;
@@ -304,6 +308,7 @@ public final class DfsPackFile extends BlockBasedFile {
return reverseIndex;
}
+ @SuppressWarnings("boxing")
private PackObjectSizeIndex getObjectSizeIndex(DfsReader ctx)
throws IOException {
if (objectSizeIndex != null) {
@@ -1169,6 +1174,7 @@ public final class DfsPackFile extends BlockBasedFile {
}
}
+ @SuppressWarnings("boxing")
private DfsBlockCache.Ref<PackIndex> loadPackIndex(
DfsReader ctx, DfsStreamKey idxKey) throws IOException {
try {
@@ -1198,6 +1204,7 @@ public final class DfsPackFile extends BlockBasedFile {
}
}
+ @SuppressWarnings("boxing")
private DfsBlockCache.Ref<PackReverseIndex> loadReverseIdx(
DfsReader ctx, DfsStreamKey revKey, PackIndex idx) {
ctx.stats.readReverseIdx++;
@@ -1213,6 +1220,7 @@ public final class DfsPackFile extends BlockBasedFile {
revidx);
}
+ @SuppressWarnings("boxing")
private DfsBlockCache.Ref<PackObjectSizeIndex> loadObjectSizeIndex(
DfsReader ctx, DfsStreamKey objectSizeIndexKey) throws IOException {
ctx.stats.readObjectSizeIndex++;