diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java index fd906c919..0c9328a8f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java @@ -954,7 +954,7 @@ public class GC { } else { if (base == null || !n.startsWith(base)) { try { - Files.delete(FileUtils.toPath(new File(packDir.toFile(), n))); + Files.delete(packDir.resolve(n)); } catch (IOException e) { LOG.error(e.getMessage(), e); }