mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
11 lines
220 B
Java
11 lines
220 B
Java
package com.moulberry.flashback;
|
|
|
|
public class SneakyThrow {
|
|
|
|
@SuppressWarnings("unchecked")
|
|
public static <E extends Throwable> RuntimeException sneakyThrow(Throwable e) throws E {
|
|
throw (E) e;
|
|
}
|
|
|
|
}
|