MCPcopy Create free account
hub / github.com/e2wugui/zeze / forceThrow

Method forceThrow

ZezeJava/ZezeJava/src/main/java/Zeze/Util/Task.java:1126–1130  ·  view source on GitHub ↗
(@NotNull Throwable e)

Source from the content-addressed store, hash-verified

1124
1125 // 利用编译器的漏洞(?)强制抛出任何异常,调用者不必声明throws或包装成RuntimeException,建议只在必要时使用
1126 @SuppressWarnings("unchecked")
1127 @Contract("_ -> fail")
1128 public static <E extends Throwable> RuntimeException forceThrow(@NotNull Throwable e) throws E {
1129 throw (E)e;
1130 }
1131
1132 private Task() {
1133 }

Callers 15

loadAndParseMethod · 0.95
onServerSocketBindMethod · 0.95
tryTriggerOnSuccessMethod · 0.95
tryTriggerOnFailMethod · 0.95
waitDirectServerReadyMethod · 0.95
applyPutMethod · 0.95
asyncResultMethod · 0.95
resultMethod · 0.95
OnResultMethod · 0.95
allDoneMethod · 0.95
OnAllDoneMethod · 0.95
awaitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected