aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2021-03-12 09:55:44 +0100
committerJan Rieke <rieke@subshell.com>2021-03-12 09:55:44 +0100
commit26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43 (patch)
tree3375d5625d4b75483648292d0aaef5c915ea3441 /test/transform/resource/after-ecj
parentf8c16ed8ac69d0106a845ca96573557700b6f39d (diff)
downloadlombok-26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43.tar.gz
lombok-26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43.tar.bz2
lombok-26cc8af4d8b0bc7944b5a7137e9e1c77f2f3cf43.zip
[fixes #2704] SuperBuilder: avoid NPE on existing constructors
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/SuperBuilderWithExistingConstuctor.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/SuperBuilderWithExistingConstuctor.java b/test/transform/resource/after-ecj/SuperBuilderWithExistingConstuctor.java
new file mode 100644
index 00000000..676e184b
--- /dev/null
+++ b/test/transform/resource/after-ecj/SuperBuilderWithExistingConstuctor.java
@@ -0,0 +1,32 @@
+public @lombok.experimental.SuperBuilder class SuperBuilderWithExistingConstuctor {
+ public static abstract @java.lang.SuppressWarnings("all") class SuperBuilderWithExistingConstuctorBuilder<C extends SuperBuilderWithExistingConstuctor, B extends SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilder<C, B>> {
+ public SuperBuilderWithExistingConstuctorBuilder() {
+ super();
+ }
+ protected abstract @java.lang.SuppressWarnings("all") B self();
+ public abstract @java.lang.SuppressWarnings("all") C build();
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return "SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilder()";
+ }
+ }
+ private static final @java.lang.SuppressWarnings("all") class SuperBuilderWithExistingConstuctorBuilderImpl extends SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilder<SuperBuilderWithExistingConstuctor, SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilderImpl> {
+ private SuperBuilderWithExistingConstuctorBuilderImpl() {
+ super();
+ }
+ protected @java.lang.Override @java.lang.SuppressWarnings("all") SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilderImpl self() {
+ return this;
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") SuperBuilderWithExistingConstuctor build() {
+ return new SuperBuilderWithExistingConstuctor(this);
+ }
+ }
+ public SuperBuilderWithExistingConstuctor() {
+ super();
+ }
+ protected @java.lang.SuppressWarnings("all") SuperBuilderWithExistingConstuctor(final SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilder<?, ?> b) {
+ super();
+ }
+ public static @java.lang.SuppressWarnings("all") SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilder<?, ?> builder() {
+ return new SuperBuilderWithExistingConstuctor.SuperBuilderWithExistingConstuctorBuilderImpl();
+ }
+} \ No newline at end of file