Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-08-15 10:27:09 -0400
committerLars Vogel2019-08-15 10:28:33 -0400
commit130034d9323afb98fb3c17e0ef93487e47d1d48d (patch)
tree473723347ff8f5aad4bdbeb7d05fc3d2e9bd1899
parent1b00a7fae3fb9924b8b1fc2da0dc95d1034866dc (diff)
downloadrt.equinox.p2-130034d9323afb98fb3c17e0ef93487e47d1d48d.tar.gz
rt.equinox.p2-130034d9323afb98fb3c17e0ef93487e47d1d48d.tar.xz
rt.equinox.p2-130034d9323afb98fb3c17e0ef93487e47d1d48d.zip
Use for-each loop in Pack200ProcessorStep
Done by the save actions. Change-Id: Ic49c0dc336085c981fa974b46803c07d571e9117 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java
index c088e95ed..a86844044 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java
@@ -56,8 +56,8 @@ public class Pack200ProcessorStep extends AbstractBufferingStep {
} else {
String[] locations = Utils.getPack200Commands("unpack200"); //$NON-NLS-1$
StringBuffer locationTried = new StringBuffer(100);
- for (int i = 0; i < locations.length; i++) {
- locationTried.append(locations[i]).append(", "); //$NON-NLS-1$
+ for (String location : locations) {
+ locationTried.append(location).append(", "); //$NON-NLS-1$
}
status = new Status(IStatus.ERROR, Activator.ID, MirrorRequest.ARTIFACT_PROCESSING_ERROR, "Unpack facility not configured. The locations searched for unpack200 are: " + locationTried, null); //$NON-NLS-1$
}

Back to the top