aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-10-10 22:36:16 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-10-10 23:25:09 +0200
commita9b4fb0c685fbc52079d57532c04277e78c95ec2 (patch)
tree0be3466295af6b87b1af63acc675749786196f07 /test/transform/resource/after-delombok
parent08961edcfeef9b181621351e36bbc267f9395415 (diff)
downloadlombok-a9b4fb0c685fbc52079d57532c04277e78c95ec2.tar.gz
lombok-a9b4fb0c685fbc52079d57532c04277e78c95ec2.tar.bz2
lombok-a9b4fb0c685fbc52079d57532c04277e78c95ec2.zip
Fix for issues when mixing @NonNull on params with @SneakyThrows or @Synchronized [Issue #588]
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/NonNullWithSneakyThrows.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/NonNullWithSneakyThrows.java b/test/transform/resource/after-delombok/NonNullWithSneakyThrows.java
new file mode 100644
index 00000000..91646468
--- /dev/null
+++ b/test/transform/resource/after-delombok/NonNullWithSneakyThrows.java
@@ -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);
+ }
+ }
+} \ No newline at end of file