diff options
author | Hector Caballero <hector.caballero@ericsson.com> | 2018-01-29 20:31:47 -0500 |
---|---|---|
committer | Hector Caballero <hector.caballero@ericsson.com> | 2018-02-06 06:25:32 -0500 |
commit | 6ca4c79063fed14080681e8b73fc1849c0ac596d (patch) | |
tree | 6ea65be09b7fdced7cf3a7e9cba36bcecc866c89 /org.eclipse.jgit | |
parent | 049417d5044636f2d8dc5864deb5de92566fcd7a (diff) | |
download | jgit-6ca4c79063fed14080681e8b73fc1849c0ac596d.tar.gz jgit-6ca4c79063fed14080681e8b73fc1849c0ac596d.zip |
GC: Simplify expression
Avoid converting path to file to then reconvert it to path.
Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Change-Id: I6a8c3ca9b83bf9b0eead9506938f5d68b27a76f5
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 fd906c9192..0c9328a8f3 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); } |