Class Sneaky
- java.lang.Object
-
- com.fasterxml.jackson.module.blackbird.util.Sneaky
-
public class Sneaky extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSneaky()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.RuntimeExceptionthrowAnyway(java.lang.Throwable t)Will always throw an exception, so the caller should also always throw the dummy return value to make sure the control flow remains clear.private static <E extends java.lang.Throwable>
voidthrowEvadingChecks(java.lang.Throwable throwable)
-
-
-
Method Detail
-
throwAnyway
public static java.lang.RuntimeException throwAnyway(java.lang.Throwable t)
Will always throw an exception, so the caller should also always throw the dummy return value to make sure the control flow remains clear.
-
throwEvadingChecks
private static <E extends java.lang.Throwable> void throwEvadingChecks(java.lang.Throwable throwable) throws E extends java.lang.Throwable- Throws:
E extends java.lang.Throwable
-
-