diff options
author | Roel Spilker <r.spilker@gmail.com> | 2018-11-06 00:27:02 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-11-06 00:37:07 +0100 |
commit | 7e79316a1f28d1eb1ef8569119b97a70387fd6c6 (patch) | |
tree | a4251e266a99984b569f70bbb2e8baee6b55b177 /test/transform/resource/before | |
parent | dc641cc3696e63c46c9693ccdfd296f173afec53 (diff) | |
download | lombok-7e79316a1f28d1eb1ef8569119b97a70387fd6c6.tar.gz lombok-7e79316a1f28d1eb1ef8569119b97a70387fd6c6.tar.bz2 lombok-7e79316a1f28d1eb1ef8569119b97a70387fd6c6.zip |
Improve toString generation for enums. Fixes #1916
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/ToStringEnum.java | 17 |
1 files changed, 17 insertions, 0 deletions
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 |