aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2023-01-31 23:24:30 +0100
committerHan-Wen Nienhuys <hanwen@google.com>2023-02-01 10:53:43 +0100
commitb30c75be40d34fc844424f8fc5a71eb3fa55b6e0 (patch)
tree92b22b0c22111d726159da7eff80a2bd42f855b2
parent66b871b777c1a58337e80dd03db68bb76b145a93 (diff)
downloadjgit-b30c75be40d34fc844424f8fc5a71eb3fa55b6e0.tar.gz
jgit-b30c75be40d34fc844424f8fc5a71eb3fa55b6e0.zip
Fix unused exception error-prone warning
Ignoring the exception seems intended in this case. Change-Id: I9dedf61b9cb5a6ff39fb141dd5da19143f4f6978
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LooseObjects.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LooseObjects.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LooseObjects.java
index b9af83d24d..326c5f6457 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LooseObjects.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/LooseObjects.java
@@ -254,7 +254,7 @@ class LooseObjects {
// refresh directory to work around NFS caching issue
}
return getSizeWithoutRefresh(curs, id);
- } catch (FileNotFoundException e) {
+ } catch (FileNotFoundException unused) {
if (fileFor(id).exists()) {
throw noFile;
}