aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/NonNullWithSneakyThrows.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/NonNullWithSneakyThrows.java')
-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