Fix for issues when mixing @NonNull on params with @SneakyThrows or @Synchronized [Issue #588]

This commit is contained in:
Reinier Zwitserloot committed 2013-10-10 23:25:09 +02:00
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);
}
}
}