diff options
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r-- | test/transform/resource/after-delombok/GetterEnum.java | 18 | ||||
-rw-r--r-- | test/transform/resource/after-delombok/SneakyThrowsPlain.java | 9 |
2 files changed, 26 insertions, 1 deletions
diff --git a/test/transform/resource/after-delombok/GetterEnum.java b/test/transform/resource/after-delombok/GetterEnum.java new file mode 100644 index 00000000..3c6e6e0c --- /dev/null +++ b/test/transform/resource/after-delombok/GetterEnum.java @@ -0,0 +1,18 @@ +enum GetterEnum { + ONE(1, "One"); + private final int id; + private final String name; + @java.lang.SuppressWarnings("all") + private GetterEnum(final int id, final String name) { + this.id = id; + this.name = name; + } + @java.lang.SuppressWarnings("all") + public int getId() { + return this.id; + } + @java.lang.SuppressWarnings("all") + public String getName() { + return this.name; + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-delombok/SneakyThrowsPlain.java b/test/transform/resource/after-delombok/SneakyThrowsPlain.java index 93f734f8..5c0890b5 100644 --- a/test/transform/resource/after-delombok/SneakyThrowsPlain.java +++ b/test/transform/resource/after-delombok/SneakyThrowsPlain.java @@ -7,6 +7,14 @@ class SneakyThrowsPlain { throw lombok.Lombok.sneakyThrow($ex); } } + SneakyThrowsPlain(int x) { + this(); + try { + System.out.println("constructor2"); + } catch (final java.lang.Throwable $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } public void test() { try { System.out.println("test1"); @@ -14,7 +22,6 @@ class SneakyThrowsPlain { throw lombok.Lombok.sneakyThrow($ex); } } - public void test2() { try { System.out.println("test2"); |