From b279ce7f9efc994f5f9f56c796385d3a6d775cf5 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Thu, 14 Jun 2012 17:27:40 +0400 Subject: [PATCH] Revert "poor man Nothing" This reverts commit e113294185a12ee2a93fb045ebd252bd3b30bf0a. --- .../util/src/org/jetbrains/jet/utils/ExceptionUtils.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; }