]> source.dussan.org Git - jgit.git/commitdiff
Fix boxing warnings 57/205357/1
authorMatthias Sohn <matthias.sohn@sap.com>
Wed, 8 Nov 2023 22:38:09 +0000 (23:38 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 8 Nov 2023 23:08:42 +0000 (00:08 +0100)
Change-Id: Ibb61f63f17e909ee0e6a781c9418f7c1ac2c7cd7

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

index 805f24f5ec0bd5b9f67f4576f38ad551c3487333..dff9fa52c8e58d8cf6893aa28a534b15704a6156 100644 (file)
@@ -35,14 +35,16 @@ public class PackObjectSizeIndexLoader {
                byte[] header = in.readNBytes(4);
                if (!Arrays.equals(header, PackObjectSizeIndexWriter.HEADER)) {
                        throw new IOException(MessageFormat.format(
-                                       JGitText.get().unreadableObjectSizeIndex, header.length,
+                                       JGitText.get().unreadableObjectSizeIndex,
+                                       Integer.valueOf(header.length),
                                        Arrays.toString(header)));
                }
 
                int version = in.readNBytes(1)[0];
                if (version != 1) {
                        throw new IOException(MessageFormat.format(
-                                       JGitText.get().unsupportedObjectSizeIndexVersion, version));
+                                       JGitText.get().unsupportedObjectSizeIndexVersion,
+                                       Integer.valueOf(version)));
                }
                return PackObjectSizeIndexV1.parse(in);
        }