]> source.dussan.org Git - jgit.git/commit
FileUtils.toPath to convert File to Path 93/110593/3
authorMarc Strapetz <marc.strapetz@syntevo.com>
Tue, 14 Nov 2017 09:02:07 +0000 (10:02 +0100)
committerMarc Strapetz <marc.strapetz@syntevo.com>
Tue, 14 Nov 2017 09:07:37 +0000 (10:07 +0100)
commit9bb126d12d812bb791d8c2f8bf48b5edb25d34ad
tree39610bf5dc832d37cb2ab18ad8afd158a103decf
parent4bdf0ec67978a0ac28fe40fd104736502f48fded
FileUtils.toPath to convert File to Path

When invoking File.toPath(), an (unchecked) InvalidPathException may be
thrown which should be converted to a checked IOException.

For now, we will replace File.toPath() by FileUtils.toPath() only for
code which can already handle IOExceptions.

Change-Id: I0f0c5fd2a11739e7a02071adae9a5550985d4df6
Signed-off-by: Marc Strapetz <marc.strapetz@syntevo.com>
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/CleanFilter.java
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/SmudgeFilter.java
org.eclipse.jgit.test/exttst/org/eclipse/jgit/ignore/CGitVsJGitRandomIgnorePatternTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GC.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/GcLog.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/ObjectDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FileUtils.java