From 4b79bdece8775b22138fcc2c0b2e004a3624ccd5 Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Wed, 1 Aug 2018 10:42:58 +0300 Subject: For-each conversion in ProfileChangeRequest. Change-Id: I20bb4044d92a3a28b73906f381fd1764f034fbe6 Signed-off-by: Alexander Kurtakov --- .../equinox/internal/p2/director/ProfileChangeRequest.java | 8 ++++---- 1 file 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 -- cgit v1.2.3