Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn2018-03-09 19:24:24 -0500
committerMatthias Sohn2018-03-09 19:24:24 -0500
commitb0587c644c95c356b91d61496ef2b9e3e0351a4b (patch)
treeb1418c5916f1911ba32a9177381f1d85e386480a /org.eclipse.egit.core.test/src
parent9fcddb3a82a7b0c3927d3a32e232d4148777dc8d (diff)
downloadegit-b0587c644c95c356b91d61496ef2b9e3e0351a4b.tar.gz
egit-b0587c644c95c356b91d61496ef2b9e3e0351a4b.tar.xz
egit-b0587c644c95c356b91d61496ef2b9e3e0351a4b.zip
Remove deprecated IgnoreOperation#IgnoreOperation(IResource[])
Use #IgnoreOperation(Collection) instead. Change-Id: If991ff4f89762dae5cf6caa892103e003441b93b 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/IgnoreOperationTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/IgnoreOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/IgnoreOperationTest.java
index b23f9c854..cadc4cdfb 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/IgnoreOperationTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/IgnoreOperationTest.java
@@ -18,6 +18,8 @@ import static org.junit.Assert.fail;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@@ -158,8 +160,9 @@ public class IgnoreOperationTest extends GitTestCase {
@Test
public void testIgnoreWithResource() throws Exception {
IFolder binFolder = project.getProject().getFolder("bin");
- @SuppressWarnings("deprecation")
- IgnoreOperation operation = new IgnoreOperation(new IResource[] {binFolder});
+ Collection<IPath> c = Collections
+ .singletonList(binFolder.getLocation());
+ IgnoreOperation operation = new IgnoreOperation(c);
operation.execute(new NullProgressMonitor());
String content = project.getFileContent(Constants.GITIGNORE_FILENAME);

Back to the top