diff options
Diffstat (limited to 'test/transform/resource/before/SneakyThrowsSingle.java')
-rw-r--r-- | test/transform/resource/before/SneakyThrowsSingle.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/transform/resource/before/SneakyThrowsSingle.java b/test/transform/resource/before/SneakyThrowsSingle.java new file mode 100644 index 00000000..e7b78ec7 --- /dev/null +++ b/test/transform/resource/before/SneakyThrowsSingle.java @@ -0,0 +1,21 @@ +import java.io.IOException; + +class SneakyThrowsSingle { + @lombok.SneakyThrows(Throwable.class) + public void test() { + System.out.println("test1"); + } + + @lombok.SneakyThrows(IOException.class) + public void test2() { + System.out.println("test2"); + throw new IOException(); + } + + @lombok.SneakyThrows(value=IOException.class) + public void test3() { + System.out.println("test3"); + throw new IOException(); + } + +}
\ No newline at end of file |