Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java
index 7ea943a64..46083640d 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java
@@ -36,10 +36,10 @@ public class DefaultStartupMonitor implements StartupMonitor {
try {
updateMethod = splashHandler.getClass().getMethod("updateSplash", (Class[]) null); //$NON-NLS-1$
} catch (SecurityException e) {
- throw (IllegalStateException) new IllegalStateException(e.getMessage()).initCause(e);
+ throw new IllegalStateException(e.getMessage(), e);
} catch (NoSuchMethodException e) {
//TODO maybe we could do something else in the update method in this case, like print something to the console?
- throw (IllegalStateException) new IllegalStateException(e.getMessage()).initCause(e);
+ throw new IllegalStateException(e.getMessage(), e);
}
}

Back to the top