diff options
author | Matthias Sohn | 2011-05-13 22:17:33 +0000 |
---|---|---|
committer | Matthias Sohn | 2011-05-13 22:19:12 +0000 |
commit | 51089ecd6eb9caa4af4024157873c1895923fade (patch) | |
tree | e0ab35a83fd98f3f090847677147ec5e77ff5387 /org.eclipse.egit.core.test/src | |
parent | 96d0ac7d0234f0fef6dbab34c9834d22ad084a9d (diff) | |
download | egit-51089ecd6eb9caa4af4024157873c1895923fade.tar.gz egit-51089ecd6eb9caa4af4024157873c1895923fade.tar.xz egit-51089ecd6eb9caa4af4024157873c1895923fade.zip |
[findBugs] Do not ignore return value of File methods
Change-Id: I80c5dbf7f85ff1ede5748144b533b582e6997969
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.core.test/src')
-rw-r--r-- | org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CloneOperationTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CloneOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CloneOperationTest.java index 28dc50f0bc..f9e7245a3e 100644 --- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CloneOperationTest.java +++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CloneOperationTest.java @@ -27,6 +27,7 @@ import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.Repository; import org.eclipse.jgit.storage.file.FileRepository; import org.eclipse.jgit.transport.URIish; +import org.eclipse.jgit.util.FileUtils; import org.junit.Before; import org.junit.Test; @@ -44,7 +45,7 @@ public class CloneOperationTest extends DualRepositoryTestCase { repository1 = new TestRepository(new File(workdir, Constants.DOT_GIT)); File file = new File(workdir, "file1.txt"); - file.createNewFile(); + FileUtils.createNewFile(file); Git git = new Git(repository1.getRepository()); git.add().addFilepattern("file1.txt").call(); |