diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-10-26 03:49:23 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-10-26 03:49:23 +0200 |
commit | c359a4b41f2800c63ad28037fe02ccf8910dcc2e (patch) | |
tree | 901022e69c75f52661a400f157cb7661e9496ce9 /test/transform | |
parent | 7c8ba501deea24694e2502747b63aa6dab503c79 (diff) | |
download | lombok-c359a4b41f2800c63ad28037fe02ccf8910dcc2e.tar.gz lombok-c359a4b41f2800c63ad28037fe02ccf8910dcc2e.tar.bz2 lombok-c359a4b41f2800c63ad28037fe02ccf8910dcc2e.zip |
[issue #3014] test-case that reproduces this problem.
Diffstat (limited to 'test/transform')
-rw-r--r-- | test/transform/resource/before/BuilderNestedInEnum.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderNestedInEnum.java b/test/transform/resource/before/BuilderNestedInEnum.java new file mode 100644 index 00000000..99348002 --- /dev/null +++ b/test/transform/resource/before/BuilderNestedInEnum.java @@ -0,0 +1,12 @@ +// issue #3014: Builder check if its on a non-static inner class and errors if it is. But it was erroring here even though it is on a static inner class. +class BuilderNestedInEnum { + public enum TestEnum { + FOO, BAR; + + @lombok.Builder + @lombok.Value + public static class TestBuilder { + String field; + } + } +}
\ No newline at end of file |