Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-11-15 19:37:12 +0000
committerAlexander Kurtakov2017-11-15 19:37:12 +0000
commitdb56a7eb86825cf43f9b5b763ba38912f9c1d69b (patch)
treeaf0e79b6b7d9a978997a7d5a234246122edb617f /bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java
parent4c90517290482c613a11c58346f7e2fd2ece015d (diff)
downloadrt.equinox.p2-db56a7eb86825cf43f9b5b763ba38912f9c1d69b.tar.gz
rt.equinox.p2-db56a7eb86825cf43f9b5b763ba38912f9c1d69b.tar.xz
rt.equinox.p2-db56a7eb86825cf43f9b5b763ba38912f9c1d69b.zip
* Bump BREE. * Enable more warnings. * Update minor version. * Generify. * Add missing Override/Deprecate annotations. * Try-with-resources. Change-Id: Ib552796cc41bf978877264fd32078f5c936b774d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java
index a405e5d90..a6cbb2a61 100644
--- a/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests.ui/src/org/eclipse/equinox/p2/tests/ui/operations/UninstallOperationTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2010 IBM Corporation and others.
+ * Copyright (c) 2010, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -27,7 +27,7 @@ import org.eclipse.equinox.p2.tests.ui.AbstractProvisioningUITest;
public class UninstallOperationTests extends AbstractProvisioningUITest {
public void testUninstallContactsNoRepositories() {
- HashSet<IInstallableUnit> ius = new HashSet<IInstallableUnit>();
+ HashSet<IInstallableUnit> ius = new HashSet<>();
ius.add(top1);
UninstallOperation op = new UninstallOperation(getSession(), ius);
// We set the provisioning context to the same one we use for install
@@ -43,7 +43,7 @@ public class UninstallOperationTests extends AbstractProvisioningUITest {
IQueryable<IInstallableUnit> queryable = pc.getMetadata(getMonitor());
assertTrue("metadata queryable should be empty", queryable.query(QueryUtil.ALL_UNITS, getMonitor()).isEmpty());
IQueryable<IArtifactRepository> artifactQueryable = pc.getArtifactRepositories(getMonitor());
- IQuery<IArtifactRepository> all = new ExpressionMatchQuery<IArtifactRepository>(IArtifactRepository.class, ExpressionUtil.TRUE_EXPRESSION);
+ IQuery<IArtifactRepository> all = new ExpressionMatchQuery<>(IArtifactRepository.class, ExpressionUtil.TRUE_EXPRESSION);
assertTrue("artifact queryable should be empty", artifactQueryable.query(all, getMonitor()).isEmpty());
}
}

Back to the top