aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderInitializer.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2021-02-04 22:17:22 +0100
committerGitHub <noreply@github.com>2021-02-04 22:17:22 +0100
commited4ced1a3bc694f9a9903b5a15b2641236ff2f92 (patch)
treeb2fc7abd39c121c1965601ea843e849a14d81397 /test/transform/resource/before/SuperBuilderInitializer.java
parent0519cb23b1ab4e572d4c6e8b2d8b9c12c19af4ad (diff)
parent5ee6271902c05a3cad28b611be60bce94f6904a8 (diff)
downloadlombok-ed4ced1a3bc694f9a9903b5a15b2641236ff2f92.tar.gz
lombok-ed4ced1a3bc694f9a9903b5a15b2641236ff2f92.tar.bz2
lombok-ed4ced1a3bc694f9a9903b5a15b2641236ff2f92.zip
Merge pull request #2719 from Rawi01/superbuilder-initializer-npe
SuperBuilder now skips initializers while gathering types
Diffstat (limited to 'test/transform/resource/before/SuperBuilderInitializer.java')
-rw-r--r--test/transform/resource/before/SuperBuilderInitializer.java16
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";
+ }
+ }
+}