]> source.dussan.org Git - jgit.git/commitdiff
PackObjectSizeIndexV1: fix boxing warnings 44/1200144/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 28 Aug 2024 14:13:42 +0000 (16:13 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 28 Aug 2024 19:46:37 +0000 (21:46 +0200)
Change-Id: I25e6194fb8bf09dcac1613cec8349c3893a4f81a

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackObjectSizeIndexV1.java

index e172f141f57b941e2871cc379f6f940101ad589c..9957f54fbf97fa433ec6de5f866027a931313836 100644 (file)
@@ -149,7 +149,8 @@ class PackObjectSizeIndexV1 implements PackObjectSizeIndex {
                        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 @@ class PackObjectSizeIndexV1 implements PackObjectSizeIndex {
                        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);
                }