mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-03 05:20:17 +00:00
26 lines
550 B
Java
26 lines
550 B
Java
import java.io.IOException;
|
|
class SneakyThrowsSingle {
|
|
public void test() {
|
|
try {
|
|
System.out.println("test1");
|
|
} catch (final Throwable $ex) {
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
public void test2() {
|
|
try {
|
|
System.out.println("test2");
|
|
throw new IOException();
|
|
} catch (final IOException $ex) {
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
public void test3() {
|
|
try {
|
|
System.out.println("test3");
|
|
throw new IOException();
|
|
} catch (final IOException $ex) {
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
} |