mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
[Issue 381] @SneakyThrows respects constructor calls
This commit is contained in:
1 parent
3ed67fc8ae
commit
8fb4f79757
4 files changed
+37
-4
No files matched your search
@@ -1,7 +1,14 @@
|
||||
import lombok.SneakyThrows;
|
||||
class SneakyThrowsPlain {
|
||||
SneakyThrowsPlain() {
|
||||
@lombok.SneakyThrows SneakyThrowsPlain() {
|
||||
super();
|
||||
try
|
||||
{
|
||||
System.out.println("constructor");
|
||||
}
|
||||
catch (final java.lang.Throwable $ex) {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
public @lombok.SneakyThrows void test() {
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user