diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2021-01-21 09:42:31 +0100 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2021-01-21 09:43:57 +0100 |
commit | 5ee6271902c05a3cad28b611be60bce94f6904a8 (patch) | |
tree | 5014f66ce24f886cb540531f766b2a6e82b0440e /test/transform/resource/before | |
parent | 04f17f4dcfbb0e7881d605708467498e3ec56521 (diff) | |
download | lombok-5ee6271902c05a3cad28b611be60bce94f6904a8.tar.gz lombok-5ee6271902c05a3cad28b611be60bce94f6904a8.tar.bz2 lombok-5ee6271902c05a3cad28b611be60bce94f6904a8.zip |
[fixes #2716] SuperBuilder now skips initializers while gathering types
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/SuperBuilderInitializer.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderInitializer.java b/test/transform/resource/before/SuperBuilderInitializer.java new file mode 100644 index 00000000..966a4daf --- /dev/null +++ b/test/transform/resource/before/SuperBuilderInitializer.java @@ -0,0 +1,16 @@ +import lombok.experimental.SuperBuilder; + +class SuperBuilderInitializer { + @SuperBuilder + public static class One { + private String world; + { + world = "Hello"; + } + + private static final String world2; + static { + world2 = "Hello"; + } + } +} |