mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplification
This commit is contained in:
@@ -40,8 +40,7 @@ public class RunResult<T> extends Result<T> {
|
||||
catch (Throwable t) {
|
||||
myThrowable = t;
|
||||
if (!myActionRunnable.isSilentExecution()) {
|
||||
ExceptionUtil.rethrowUnchecked(t);
|
||||
throw new RuntimeException(myThrowable);
|
||||
ExceptionUtil.rethrowAllAsUnchecked(t);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
@@ -67,8 +66,7 @@ public class RunResult<T> extends Result<T> {
|
||||
@NotNull
|
||||
public RunResult<T> throwException() throws RuntimeException, Error {
|
||||
if (myThrowable != null) {
|
||||
ExceptionUtil.rethrowUnchecked(myThrowable);
|
||||
throw new RuntimeException(myThrowable);
|
||||
ExceptionUtil.rethrowAllAsUnchecked(myThrowable);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user