PackObjectSizeIndexV1: fix boxing warnings
Change-Id: I25e6194fb8bf09dcac1613cec8349c3893a4f81a
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexV1.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexV1.java
index e172f14..9957f54 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexV1.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexV1.java
@@ -149,7 +149,8 @@ static IntArray from(InputStream in, int ints) throws IOException {
byte[] data = in.readNBytes(expectedBytes);
if (data.length < expectedBytes) {
throw new IOException(MessageFormat
- .format(JGitText.get().unableToReadFullArray, ints));
+ .format(JGitText.get().unableToReadFullArray,
+ Integer.valueOf(ints)));
}
return new IntArray(data);
}
@@ -217,7 +218,8 @@ static LongArray from(InputStream in, int longs) throws IOException {
byte[] data = in.readNBytes(longs * LONG_SIZE);
if (data.length < longs * LONG_SIZE) {
throw new IOException(MessageFormat
- .format(JGitText.get().unableToReadFullArray, longs));
+ .format(JGitText.get().unableToReadFullArray,
+ Integer.valueOf(longs)));
}
return new LongArray(data);
}