diff options
Diffstat (limited to 'test/transform/resource/after-delombok/SneakyThrowsSingle.java')
-rw-r--r-- | test/transform/resource/after-delombok/SneakyThrowsSingle.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/SneakyThrowsSingle.java b/test/transform/resource/after-delombok/SneakyThrowsSingle.java new file mode 100644 index 00000000..519d06a9 --- /dev/null +++ b/test/transform/resource/after-delombok/SneakyThrowsSingle.java @@ -0,0 +1,26 @@ +import java.io.IOException; +class SneakyThrowsSingle { + public void test() { + try { + System.out.println("test1"); + } catch (Throwable $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } + public void test2() { + try { + System.out.println("test2"); + throw new IOException(); + } catch (IOException $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } + public void test3() { + try { + System.out.println("test3"); + throw new IOException(); + } catch (IOException $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } +}
\ No newline at end of file |