diff options
Diffstat (limited to 'test/transform')
6 files changed, 73 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"); diff --git a/test/transform/resource/after-ecj/GetterEnum.java b/test/transform/resource/after-ecj/GetterEnum.java new file mode 100644 index 00000000..3536a6e8 --- /dev/null +++ b/test/transform/resource/after-ecj/GetterEnum.java @@ -0,0 +1,21 @@ +import lombok.AccessLevel; +import lombok.Getter; +import lombok.RequiredArgsConstructor; +@RequiredArgsConstructor(access = AccessLevel.PRIVATE) enum GetterEnum { + ONE(1, "One"), + private final @Getter int id; + private final @Getter String name; + <clinit>() { + } + private @java.lang.SuppressWarnings("all") GetterEnum(final int id, final String name) { + super(); + this.id = id; + this.name = name; + } + public @java.lang.SuppressWarnings("all") int getId() { + return this.id; + } + public @java.lang.SuppressWarnings("all") String getName() { + return this.name; + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/SneakyThrowsPlain.java b/test/transform/resource/after-ecj/SneakyThrowsPlain.java index 56016b5a..1b45dc5a 100644 --- a/test/transform/resource/after-ecj/SneakyThrowsPlain.java +++ b/test/transform/resource/after-ecj/SneakyThrowsPlain.java @@ -10,6 +10,16 @@ class SneakyThrowsPlain { throw lombok.Lombok.sneakyThrow($ex); } } + @lombok.SneakyThrows SneakyThrowsPlain(int x) { + this(); + try + { + System.out.println("constructor2"); + } + catch (final java.lang.Throwable $ex) { + throw lombok.Lombok.sneakyThrow($ex); + } + } public @lombok.SneakyThrows void test() { try { diff --git a/test/transform/resource/before/GetterEnum.java b/test/transform/resource/before/GetterEnum.java new file mode 100644 index 00000000..994581f2 --- /dev/null +++ b/test/transform/resource/before/GetterEnum.java @@ -0,0 +1,11 @@ +import lombok.AccessLevel; +import lombok.Getter; +import lombok.RequiredArgsConstructor; + +@RequiredArgsConstructor(access=AccessLevel.PRIVATE) +enum GetterEnum { + ONE(1, "One") + ; + @Getter private final int id; + @Getter private final String name; +} diff --git a/test/transform/resource/before/SneakyThrowsPlain.java b/test/transform/resource/before/SneakyThrowsPlain.java index 261e1b53..871086b7 100644 --- a/test/transform/resource/before/SneakyThrowsPlain.java +++ b/test/transform/resource/before/SneakyThrowsPlain.java @@ -5,6 +5,11 @@ class SneakyThrowsPlain { System.out.println("constructor"); } + @lombok.SneakyThrows SneakyThrowsPlain(int x) { + this(); + System.out.println("constructor2"); + } + @lombok.SneakyThrows public void test() { System.out.println("test1"); } |