From 53deba1b4fd8724e618258189deea9c000b94dce Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Thu, 31 Aug 2017 20:40:31 +0900 Subject: [PATCH] FsckPackParser: Fix warning about int being boxed to Integer Change-Id: I525164090e3990ce353bbb1627aaafaad2c903b6 Signed-off-by: David Pursehouse --- .../src/org/eclipse/jgit/internal/fsck/FsckPackParser.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/fsck/FsckPackParser.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/fsck/FsckPackParser.java index e5cc36965d..3a678a72df 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/fsck/FsckPackParser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/fsck/FsckPackParser.java @@ -284,7 +284,8 @@ public class FsckPackParser extends PackParser { if (offs == -1) { throw new CorruptPackIndexException( MessageFormat.format(JGitText.get().missingObject, - entry.getType(), entry.getName()), + Integer.valueOf(entry.getType()), + entry.getName()), ErrorType.MISSING_OBJ); } else if (offs != entry.getOffset()) { throw new CorruptPackIndexException(MessageFormat -- 2.39.5