aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Frade <ifrade@google.com>2024-12-11 17:29:57 +0000
committerGerrit Code Review <support@gerrithub.io>2024-12-11 17:29:57 +0000
commit8dfb2a2465c8728649f6224ceab76ac9d8cca407 (patch)
tree6e7cec76f9bd9f0c8385395970fc38746f26edd4
parentac0b4f8d0e60469fcc2c57379e7499eb06fb6c2d (diff)
parente5bb59bc15f09651ffe0fff95dfe5ca5c8470619 (diff)
downloadjgit-8dfb2a2465c8728649f6224ceab76ac9d8cca407.tar.gz
jgit-8dfb2a2465c8728649f6224ceab76ac9d8cca407.zip
Merge "FileSnapshot: Delete malformed "catch" line (merge artifact?)"
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
index 8f83a37efc..3eea16b227 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java
@@ -16,7 +16,6 @@ import static org.eclipse.jgit.util.FS.FileStoreAttributes.FALLBACK_TIMESTAMP_RE
import java.io.File;
import java.io.IOException;
import java.nio.file.FileSystemException;
-import java.nio.file.NoSuchFileException;
import java.nio.file.attribute.BasicFileAttributes;
import java.time.Duration;
import java.time.Instant;
@@ -547,7 +546,6 @@ public class FileSnapshot {
private static BasicFileAttributes getFileAttributes(File path) throws NoSuchElementException {
try {
return FS.DETECTED.fileAttributes(path);
- } catch (NoSuchFileException e) {
} catch (FileSystemException e) {
if (!e.getMessage().endsWith("Not a directory")) {
LOG.error(e.getMessage(), e);