Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2010-01-18 12:31:40 -0500
committerSusan Franklin2010-01-18 12:31:40 -0500
commitac4b7ed7d1569d8e4dac8143e3b845104de2e806 (patch)
treee7b7bd8a2f593732e33305da7cebed286a7fd52e /bundles/org.eclipse.equinox.p2.tests.ui
parent84fee294c6a6fb86540e0d63387ba09a74dd60b5 (diff)
downloadrt.equinox.p2-ac4b7ed7d1569d8e4dac8143e3b845104de2e806.tar.gz
rt.equinox.p2-ac4b7ed7d1569d8e4dac8143e3b845104de2e806.tar.xz
rt.equinox.p2-ac4b7ed7d1569d8e4dac8143e3b845104de2e806.zip
Bug 299917 - Compile warnings in official build
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/ElementUtilsTest.java5
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/QueryDescriptorTest.java1
2 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/ElementUtilsTest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/ElementUtilsTest.java
index c15ef96f2..cd2110a96 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/ElementUtilsTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/actions/ElementUtilsTest.java
@@ -19,7 +19,8 @@ import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.IJobChangeListener;
import org.eclipse.equinox.internal.p2.ui.ProvUIMessages;
-import org.eclipse.equinox.internal.p2.ui.model.*;
+import org.eclipse.equinox.internal.p2.ui.model.ElementUtils;
+import org.eclipse.equinox.internal.p2.ui.model.MetadataRepositoryElement;
import org.eclipse.equinox.p2.operations.ProvisioningSession;
import org.eclipse.equinox.p2.repository.IRepository;
import org.eclipse.equinox.p2.repository.IRepositoryManager;
@@ -77,8 +78,6 @@ public class ElementUtilsTest extends ProfileModificationActionTest {
manager.setEnabled(uri2, false);
session.getArtifactRepositoryManager().setEnabled(uri2, false);
- // The elements reflect all visible sites, but not system sites
- MetadataRepositories root = new MetadataRepositories(getProvisioningUI());
List children = new ArrayList();
children.add(new MetadataRepositoryElement(null, known1, true));
// Add known2, this is as if a user added it in the pref page
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/QueryDescriptorTest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/QueryDescriptorTest.java
index 745e45f88..a2d6d6cdd 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/QueryDescriptorTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/QueryDescriptorTest.java
@@ -25,7 +25,6 @@ public class QueryDescriptorTest extends TestCase {
List elements = Arrays.asList(new String[] {"a", "b", "c", "d", "e"});
public IQueryResult query(IQuery query, IProgressMonitor monitor) {
- Collector collector = new Collector();
return query.perform(elements.iterator());
}
}

Back to the top