From 1f4fb2fb4885ad9c808a080fbbf63353042e08d1 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 2 Dec 2009 01:51:50 +0100 Subject: Fixed #73 SneakyThrows without parameter did not default to Throwable.class Added tests for SneakyThrows --- test/delombok/resource/after/SneakyThrowsPlain.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/delombok/resource/after/SneakyThrowsPlain.java (limited to 'test/delombok/resource/after/SneakyThrowsPlain.java') diff --git a/test/delombok/resource/after/SneakyThrowsPlain.java b/test/delombok/resource/after/SneakyThrowsPlain.java new file mode 100644 index 00000000..d5abc478 --- /dev/null +++ b/test/delombok/resource/after/SneakyThrowsPlain.java @@ -0,0 +1,17 @@ +class SneakyThrowsPlain { + public void test() { + try { + System.out.println("test1"); + } catch (java.lang.Throwable $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } + + public void test2() { + try { + System.out.println("test2"); + } catch (java.lang.Throwable $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } +} \ No newline at end of file -- cgit