diff options
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/GetterEnum.java | 11 | ||||
-rw-r--r-- | test/transform/resource/before/SneakyThrowsPlain.java | 5 |
2 files changed, 16 insertions, 0 deletions
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"); } |