Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/FrameworkExtensionInstaller.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/FrameworkExtensionInstaller.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/FrameworkExtensionInstaller.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/FrameworkExtensionInstaller.java
index 03fea5fe2..939e9548f 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/FrameworkExtensionInstaller.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/FrameworkExtensionInstaller.java
@@ -124,14 +124,15 @@ public class FrameworkExtensionInstaller {
if (files == null) {
return;
}
- for (int i = 0; i < files.length; i++) {
- if (files[i] == null)
- continue;
+ for (File file : files) {
+ if (file == null) {
+ continue;
+ }
try {
- callAddURLMethod(StorageUtil.encodeFileURL(files[i]));
- } catch (InvocationTargetException | MalformedURLException e) {
+ callAddURLMethod(StorageUtil.encodeFileURL(file));
+ }catch (InvocationTargetException | MalformedURLException e) {
throw new BundleException("Error adding extension content.", e); //$NON-NLS-1$
- }
+ }
}
}

Back to the top