mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 18:18:48 +00:00
27 lines
551 B
Java
27 lines
551 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);
|
|
}
|
|
}
|
|
}
|