Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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