From f8d91c27361ef094b550269a6a9069b455b44946 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 22 Sep 2023 13:25:21 +0200 Subject: [PATCH] [errorprone] Don't swallow exception See https://errorprone.info/bugpattern/UnusedException Change-Id: I01568dfa22adbbaa50191aa2d0a445a3c252b803 --- .../eclipse/jgit/internal/storage/file/PackReverseIndexV1.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndexV1.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndexV1.java index c77a8eb76..6a4735212 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndexV1.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackReverseIndexV1.java @@ -66,7 +66,7 @@ final class PackReverseIndexV1 implements PackReverseIndex { this.objectCount = Math.toIntExact(objectCount); } catch (ArithmeticException e) { throw new IllegalArgumentException( - JGitText.get().hugeIndexesAreNotSupportedByJgitYet); + JGitText.get().hugeIndexesAreNotSupportedByJgitYet, e); } this.inputStream = inputStream;