MCPcopy Create free account
hub / github.com/cinit/TMoe / unsafeThrowImpl

Method unsafeThrowImpl

app/src/main/java/cc/ioctl/tmoe/util/IoUtils.java:143–146  ·  view source on GitHub ↗
(@NonNull Throwable t)

Source from the content-addressed store, hash-verified

141 }
142
143 @SuppressWarnings("unchecked")
144 private static <T extends Throwable> void unsafeThrowImpl(@NonNull Throwable t) throws T {
145 throw (T) t;
146 }
147
148 public static void writeFile(@NonNull File file, @NonNull byte[] data) throws IOException {
149 Objects.requireNonNull(file, "file == null");

Callers 2

unsafeThrowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected