Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-10-08 02:42:01 -0400
committerAlexander Kurtakov2020-10-09 04:58:52 -0400
commit44d55a2e9395fc8f161314852e87dfd68dc3cb6c (patch)
treefe77921cd3c67dc2b895f870142f6e1a82eb4953
parent5d6ae314e584ffb48264b675264a5a2af7e8c18a (diff)
downloadrt.equinox.p2-I20201009-0800.tar.gz
rt.equinox.p2-I20201009-0800.tar.xz
rt.equinox.p2-I20201009-0800.zip
Change-Id: I30f8cc5bc18a931e0390e806629f8fc45ef12061 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/AbstractQueryTest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/AbstractQueryTest.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/AbstractQueryTest.java
index 7450a5468..5ca02fd42 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/AbstractQueryTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/query/AbstractQueryTest.java
@@ -31,7 +31,8 @@ public abstract class AbstractQueryTest extends AbstractProvisioningTest {
// use test query provider
// This is really not how the default policy should be used in practice,
// but we need to reset it for the tests.
- // ProvUI.setQueryProvider(new MockQueryProvider(getMockQuery(), ProvisioningUI.getDefaultUI()));
+ // ProvUI.setQueryProvider(new MockQueryProvider(getMockQuery(),
+ // ProvisioningUI.getDefaultUI()));
// some of the test repos are set up as system repos so we need to
// query all repos, not just non-system repos
// TODO consider evolving these tests to distinguish between system
@@ -47,11 +48,11 @@ public abstract class AbstractQueryTest extends AbstractProvisioningTest {
RepositoryTracker manipulator = ProvisioningUI.getDefaultUI().getRepositoryTracker();
manipulator.setArtifactRepositoryFlags(IRepositoryManager.REPOSITORIES_NON_SYSTEM);
manipulator.setMetadataRepositoryFlags(IRepositoryManager.REPOSITORIES_NON_SYSTEM);
- // ProvUI.setQueryProvider(null);
+ // ProvUI.setQueryProvider(null);
}
protected IQuery<?> getMockQuery() {
- return new MatchQuery<Object>() {
+ return new MatchQuery<>() {
@Deprecated
@Override
public boolean isMatch(Object candidate) {

Back to the top