From 7e79316a1f28d1eb1ef8569119b97a70387fd6c6 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Tue, 6 Nov 2018 00:27:02 +0100 Subject: Improve toString generation for enums. Fixes #1916 --- test/transform/resource/before/ToStringEnum.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/transform/resource/before/ToStringEnum.java (limited to 'test/transform/resource/before') diff --git a/test/transform/resource/before/ToStringEnum.java b/test/transform/resource/before/ToStringEnum.java new file mode 100644 index 00000000..8b8ad576 --- /dev/null +++ b/test/transform/resource/before/ToStringEnum.java @@ -0,0 +1,17 @@ +import lombok.ToString; +@ToString +enum ToStringEnum1 { + CONSTANT; +} +@ToString +enum ToStringEnum2 { + CONSTANT(); + int x; + String name; +} +class ToStringEnum3 { + @ToString + enum MemberEnum { + CONSTANT; + } +} \ No newline at end of file -- cgit