Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2011-05-13 22:17:33 +0000
committerMatthias Sohn2011-05-13 22:19:12 +0000
commit51089ecd6eb9caa4af4024157873c1895923fade (patch)
treee0ab35a83fd98f3f090847677147ec5e77ff5387 /org.eclipse.egit.core.test/src
parent96d0ac7d0234f0fef6dbab34c9834d22ad084a9d (diff)
downloadegit-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.java3
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();

Back to the top