diff options
author | Lars Vogel | 2019-08-15 14:27:09 +0000 |
---|---|---|
committer | Lars Vogel | 2019-08-15 14:28:33 +0000 |
commit | 130034d9323afb98fb3c17e0ef93487e47d1d48d (patch) | |
tree | 473723347ff8f5aad4bdbeb7d05fc3d2e9bd1899 | |
parent | 1b00a7fae3fb9924b8b1fc2da0dc95d1034866dc (diff) | |
download | rt.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.java | 4 |
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$ } |