Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/RuntimeLog.java')
-rw-r--r--bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/RuntimeLog.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/RuntimeLog.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/RuntimeLog.java
index 321eb4d58..c461d6803 100644
--- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/RuntimeLog.java
+++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/internal/runtime/RuntimeLog.java
@@ -101,10 +101,10 @@ public final class RuntimeLog {
return;
}
if (listeners != null) {
- for (int i = 0; i < listeners.length; i++) {
+ for (ILogListener listener : listeners) {
try {
- listeners[i].logging(status, IRuntimeConstants.PI_RUNTIME);
- } catch (Exception | LinkageError e) {
+ listener.logging(status, IRuntimeConstants.PI_RUNTIME);
+ }catch (Exception | LinkageError e) {
handleException(e);
}
}
@@ -146,8 +146,8 @@ public final class RuntimeLog {
queued = queuedMessages.toArray(new IStatus[queuedMessages.size()]);
queuedMessages.clear();
}
- for (int i = 0; i < queued.length; i++) {
- log(queued[i]);
+ for (IStatus s : queued) {
+ log(s);
}
}
@@ -157,10 +157,10 @@ public final class RuntimeLog {
synchronized (logListeners) {
listeners = logListeners.toArray(new ILogListener[logListeners.size()]);
}
- for (int i = 0; i < listeners.length; i++) {
+ for (ILogListener listener : listeners) {
try {
- listeners[i].logging(status, IRuntimeConstants.PI_RUNTIME);
- } catch (Exception | LinkageError e) {
+ listener.logging(status, IRuntimeConstants.PI_RUNTIME);
+ }catch (Exception | LinkageError e) {
handleException(e);
}
}

Back to the top