Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-08-01 07:42:58 +0000
committerAlexander Kurtakov2018-08-01 07:42:58 +0000
commit4b79bdece8775b22138fcc2c0b2e004a3624ccd5 (patch)
treeaf2460e6638ee3ffc3e4352faae13ffa64a6d8d4
parentb94e62ea196128f4955079177f236b637ced5b7e (diff)
downloadrt.equinox.p2-4b79bdece8775b22138fcc2c0b2e004a3624ccd5.tar.gz
rt.equinox.p2-4b79bdece8775b22138fcc2c0b2e004a3624ccd5.tar.xz
rt.equinox.p2-4b79bdece8775b22138fcc2c0b2e004a3624ccd5.zip
For-each conversion in ProfileChangeRequest.
Change-Id: I20bb4044d92a3a28b73906f381fd1764f034fbe6 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/ProfileChangeRequest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/ProfileChangeRequest.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/ProfileChangeRequest.java
index 5fb9b4a4b..47c287d31 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/ProfileChangeRequest.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/ProfileChangeRequest.java
@@ -87,8 +87,8 @@ public class ProfileChangeRequest implements Cloneable, IProfileChangeRequest {
}
public void addInstallableUnits(IInstallableUnit... toInstall) {
- for (int i = 0; i < toInstall.length; i++)
- add(toInstall[i]);
+ for (IInstallableUnit element : toInstall)
+ add(element);
}
@Override
@@ -99,8 +99,8 @@ public class ProfileChangeRequest implements Cloneable, IProfileChangeRequest {
}
public void removeInstallableUnits(IInstallableUnit[] toUninstall) {
- for (int i = 0; i < toUninstall.length; i++)
- remove(toUninstall[i]);
+ for (IInstallableUnit element : toUninstall)
+ remove(element);
}
@Override

Back to the top