diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2014-02-18 09:25:31 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-02-18 22:08:09 +0100 |
commit | 514719aa67ad2c980933bcf26dce0668f17c125d (patch) | |
tree | 50da1dc4e12d4726a447df07bc49a2629dc324fe | |
parent | db1877628d9846d4716598c1d1af7c76cb3bdb79 (diff) | |
download | jgit-514719aa67ad2c980933bcf26dce0668f17c125d.tar.gz jgit-514719aa67ad2c980933bcf26dce0668f17c125d.zip |
[findBugs] Don't ignore exceptional return value of File.mkdir()
Change-Id: Ic4c61472412aa158a355bb444805cde8c5d2833a
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java index 4408d7bb35..a18c4671d8 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffFormatterTest.java @@ -60,6 +60,7 @@ import org.eclipse.jgit.patch.FileHeader; import org.eclipse.jgit.patch.HunkHeader; import org.eclipse.jgit.treewalk.FileTreeIterator; import org.eclipse.jgit.treewalk.filter.PathFilter; +import org.eclipse.jgit.util.FileUtils; import org.eclipse.jgit.util.RawParseUtils; import org.eclipse.jgit.util.io.DisabledOutputStream; import org.eclipse.jgit.util.io.SafeBufferedOutputStream; @@ -312,7 +313,7 @@ public class DiffFormatterTest extends RepositoryTestCase { public void testDiff() throws Exception { write(new File(db.getDirectory().getParent(), "test.txt"), "test"); File folder = new File(db.getDirectory().getParent(), "folder"); - folder.mkdir(); + FileUtils.mkdir(folder); write(new File(folder, "folder.txt"), "folder"); Git git = new Git(db); git.add().addFilepattern(".").call(); |