aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-11-06 00:27:02 +0100
committerRoel Spilker <r.spilker@gmail.com>2018-11-06 00:37:07 +0100
commit7e79316a1f28d1eb1ef8569119b97a70387fd6c6 (patch)
treea4251e266a99984b569f70bbb2e8baee6b55b177 /test/transform/resource/before
parentdc641cc3696e63c46c9693ccdfd296f173afec53 (diff)
downloadlombok-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.java17
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