mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 16:17:34 +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,18 @@
|
||||
class NonNullWithSneakyThrows {
|
||||
NonNullWithSneakyThrows() {
|
||||
super();
|
||||
}
|
||||
@lombok.SneakyThrows 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