diff options
author | Andreas Sewe | 2016-09-08 11:46:32 +0000 |
---|---|---|
committer | Andreas Sewe | 2016-09-08 12:35:39 +0000 |
commit | 1f2340995fb730cf776b47ee4b84a45469c5e392 (patch) | |
tree | 1c2f11929a88dd3cc316f720791244c96097b7e3 /bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime | |
parent | fef33690b9c5b85c608f5466aeede64a8c18b9b7 (diff) | |
download | rt.equinox.framework-1f2340995fb730cf776b47ee4b84a45469c5e392.tar.gz rt.equinox.framework-1f2340995fb730cf776b47ee4b84a45469c5e392.tar.xz rt.equinox.framework-1f2340995fb730cf776b47ee4b84a45469c5e392.zip |
Bug 501063 - Use constructor in favor of Throwable.initCause(...)Y20160908-1000I20160913-0800I20160912-2000I20160912-1005I20160912-0800I20160912-0430I20160912-0225I20160912-0140I20160911-2015
Change-Id: I8e8dde9b777054ea62c5e6d0ce38191d50bf8c92
Signed-off-by: Andreas Sewe <andreas.sewe@codetrails.com>
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime')
-rw-r--r-- | bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/internal/adaptor/DefaultStartupMonitor.java | 4 |
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); } } |