diff --git a/compiler/util/src/org/jetbrains/jet/utils/ExceptionUtils.java b/compiler/util/src/org/jetbrains/jet/utils/ExceptionUtils.java index 0e5d0c24bbb..de8b7ac2b43 100644 --- a/compiler/util/src/org/jetbrains/jet/utils/ExceptionUtils.java +++ b/compiler/util/src/org/jetbrains/jet/utils/ExceptionUtils.java @@ -23,15 +23,10 @@ import java.io.Closeable; */ public class ExceptionUtils { - public static class Nothing extends Error { - private Nothing() { - } - } - /** * Translate exception to unchecked exception. */ - public static Nothing rethrow(Throwable e) { + public static RuntimeException rethrow(Throwable e) { if (e instanceof RuntimeException) { throw (RuntimeException) e; }