diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-08-31 15:13:34 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-08-31 15:13:34 +0200 |
commit | a40abb0a19dd1b3e69acb8f1464fdb5981f596b3 (patch) | |
tree | aaedbd32133311becba5af2d3b635856fe5a88de | |
parent | 4f3db912ce920c6a34092a5d541861a5399e1a80 (diff) | |
download | jgit-a40abb0a19dd1b3e69acb8f1464fdb5981f596b3.tar.gz jgit-a40abb0a19dd1b3e69acb8f1464fdb5981f596b3.zip |
Fix warning raised for local variable hiding DfsPackFile#index
Change-Id: I45cd3be942f798d51af1e024ceb3f4d26c7af324
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsPackFile.java | 6 |
1 files 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 f80e5d1837..ecbfa74e66 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 @@ public final class DfsPackFile extends BlockBasedFile { * 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(); } /** |