Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/mirror/NewMirrorApplicationMetadataTest.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/mirror/NewMirrorApplicationMetadataTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/mirror/NewMirrorApplicationMetadataTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/mirror/NewMirrorApplicationMetadataTest.java
index 861c75e7a..173bb4ca0 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/mirror/NewMirrorApplicationMetadataTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/mirror/NewMirrorApplicationMetadataTest.java
@@ -144,11 +144,12 @@ public class NewMirrorApplicationMetadataTest extends AbstractProvisioningTest {
//initialize to the size of both QueryResults
int numKeys = repo1.length + repo2.length;
- for (int i = 0; i < repo1.length; i++) {
- for (int j = 0; j < repo2.length; j++) {
- if (isEqual(repo1[i], repo2[j]))
+ for (IInstallableUnit repos1unit : repo1) {
+ for (IInstallableUnit repo2unit : repo2) {
+ if (isEqual(repos1unit, repo2unit)) {
numKeys--;
- //identical keys has bee found, therefore the number of unique keys is one less than previously thought
+ //identical keys has bee found, therefore the number of unique keys is one less than previously thought
+ }
}
}
return numKeys;

Back to the top