mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-31 18:19:55 +00:00
850c3eaf07
And as expected the tests shows that @Synchronized and @SneakyThrows are currently broken for eclipse but not for ecj.
25 lines
519 B
Java
25 lines
519 B
Java
import lombok.SneakyThrows;
|
|
class SneakyThrowsPlain {
|
|
SneakyThrowsPlain() {
|
|
super();
|
|
}
|
|
public @lombok.SneakyThrows void test() {
|
|
try
|
|
{
|
|
System.out.println("test1");
|
|
}
|
|
catch (final java.lang.Throwable $ex) {
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
public @SneakyThrows void test2() {
|
|
try
|
|
{
|
|
System.out.println("test2");
|
|
}
|
|
catch (final java.lang.Throwable $ex) {
|
|
throw lombok.Lombok.sneakyThrow($ex);
|
|
}
|
|
}
|
|
}
|