aboutsummaryrefslogtreecommitdiffstats
path: root/yolean/src/main
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2020-12-02 08:04:14 +0100
committerGitHub <noreply@github.com>2020-12-02 08:04:14 +0100
commit8ec5101abf70f9f723383b874fd55ecc27581783 (patch)
tree02ac1373f672b4bebd78351b03bdfeaac47d7ba8 /yolean/src/main
parent4cf13bc7db215e77f7688e429f700880c115fe76 (diff)
Revert "Bjorncs/cluster controller reindexing status"
Diffstat (limited to 'yolean/src/main')
-rw-r--r--yolean/src/main/java/com/yahoo/yolean/Exceptions.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/yolean/src/main/java/com/yahoo/yolean/Exceptions.java b/yolean/src/main/java/com/yahoo/yolean/Exceptions.java
index c377ee3ac37..063ba70c75d 100644
--- a/yolean/src/main/java/com/yahoo/yolean/Exceptions.java
+++ b/yolean/src/main/java/com/yahoo/yolean/Exceptions.java
@@ -160,25 +160,4 @@ public class Exceptions {
public interface SupplierThrowingIOException<T> {
T get() throws IOException;
}
-
- /**
- * Allows treating checked exceptions as unchecked.
- * Usage:
- * throw throwUnchecked(e);
- * The reason for the return type is to allow writing throw at the call site
- * instead of just calling throwUnchecked. Just calling throwUnchecked
- * means that the java compiler won't know that the statement will throw an exception,
- * and will therefore complain on things such e.g. missing return value.
- */
- public static RuntimeException throwUnchecked(Throwable e) {
- throwUncheckedImpl(e);
- return new RuntimeException(); // Non-null return value to stop tooling from complaining about potential NPE
- }
-
- @SuppressWarnings("unchecked")
- private static <T extends Throwable> void throwUncheckedImpl(Throwable t) throws T {
- throw (T)t;
- }
-
-
}