mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
refactored the tests to prepare running ecj as well as delombok.
This commit is contained in:
1 parent
1a9f8f168a
commit
59e585a0c6
63 files changed
+386
-186
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import java.io.IOException;
|
||||
class SneakyThrowsSingle {
|
||||
public void test() {
|
||||
try {
|
||||
System.out.println("test1");
|
||||
} catch (Throwable $ex) {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
public void test2() {
|
||||
try {
|
||||
System.out.println("test2");
|
||||
throw new IOException();
|
||||
} catch (IOException $ex) {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
public void test3() {
|
||||
try {
|
||||
System.out.println("test3");
|
||||
throw new IOException();
|
||||
} catch (IOException $ex) {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user