From a40abb0a19dd1b3e69acb8f1464fdb5981f596b3 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Thu, 31 Aug 2023 15:13:34 +0200 Subject: [PATCH] Fix warning raised for local variable hiding DfsPackFile#index Change-Id: I45cd3be942f798d51af1e024ceb3f4d26c7af324 --- .../org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java index f80e5d183..ecbfa74e6 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java @@ -1051,11 +1051,11 @@ boolean hasObjectSizeIndex(DfsReader ctx) throws IOException { * no object size index or a problem loading it. */ int getObjectSizeIndexThreshold(DfsReader ctx) throws IOException { - PackObjectSizeIndex index = getObjectSizeIndex(ctx); - if (index == null) { + PackObjectSizeIndex idx = getObjectSizeIndex(ctx); + if (idx == null) { throw new IOException("Asking threshold of non-existing obj-size"); //$NON-NLS-1$ } - return index.getThreshold(); + return idx.getThreshold(); } /**