Re-throws a checked exception as if it was a runtime exception without wrapping it. @param e the exception to re-throw.
(@NonNull Exception e)
| 33 | * @param e the exception to re-throw. |
| 34 | */ |
| 35 | public static void reThrow(@NonNull Exception e) { |
| 36 | sneakyThrow(e); |
| 37 | } |
| 38 | |
| 39 | @SuppressWarnings("unchecked") |
| 40 | private static <E extends Throwable> void sneakyThrow(@NonNull Throwable e) throws E { |
no test coverage detected