mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 06:16:14 +00:00
Fix for issues when mixing @NonNull on params with @SneakyThrows or @Synchronized [Issue #588]
This commit is contained in:
1 parent
08961edcfe
commit
a9b4fb0c68
12 files changed
+125
-31
No files matched your search
@@ -0,0 +1,12 @@
|
||||
class NonNullWithSneakyThrows {
|
||||
void test(@lombok.NonNull String in) {
|
||||
try {
|
||||
if (in == null) {
|
||||
throw new java.lang.NullPointerException("in");
|
||||
}
|
||||
System.out.println(in);
|
||||
} catch (final java.lang.Throwable $ex) {
|
||||
throw lombok.Lombok.sneakyThrow($ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user