diff options
author | Jan Rieke <rieke@subshell.com> | 2021-03-12 11:51:18 +0100 |
---|---|---|
committer | Jan Rieke <rieke@subshell.com> | 2021-03-12 11:51:18 +0100 |
commit | 14f861b5f1c49d9ccc2eb0cda088753e6b63d349 (patch) | |
tree | b5a3cd1dc17cbf7ad85c4c4c5da40889da8f873a /test/transform/resource/before | |
parent | f8c16ed8ac69d0106a845ca96573557700b6f39d (diff) | |
download | lombok-14f861b5f1c49d9ccc2eb0cda088753e6b63d349.tar.gz lombok-14f861b5f1c49d9ccc2eb0cda088753e6b63d349.tar.bz2 lombok-14f861b5f1c49d9ccc2eb0cda088753e6b63d349.zip |
[fixes #2701] fix NPE on customized SuperBuilder with Singular
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/SuperBuilderSingularCustomized.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderSingularCustomized.java b/test/transform/resource/before/SuperBuilderSingularCustomized.java new file mode 100644 index 00000000..86b6022a --- /dev/null +++ b/test/transform/resource/before/SuperBuilderSingularCustomized.java @@ -0,0 +1,9 @@ +import java.util.Set; +@lombok.experimental.SuperBuilder +class SuperBuilderSingularCustomized { + @lombok.Singular private Set<String> foos; + public static abstract class SuperBuilderSingularCustomizedBuilder<C extends SuperBuilderSingularCustomized, B extends SuperBuilderSingularCustomized.SuperBuilderSingularCustomizedBuilder<C, B>> { + public B custom(final String value) { + return self(); + } + }} |