diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2022-01-31 22:17:10 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2022-01-31 23:22:15 +0100 |
commit | 8a914b1bf0eaa13178e719431add47b78d4e7277 (patch) | |
tree | fea869022e46c43d3856aae1d942cee87eeaa7e3 /test/transform/resource/after-ecj | |
parent | 1ba5fe86aa21f0e3fbbabeb6e91152e89bfee2d5 (diff) | |
download | lombok-8a914b1bf0eaa13178e719431add47b78d4e7277.tar.gz lombok-8a914b1bf0eaa13178e719431add47b78d4e7277.tar.bz2 lombok-8a914b1bf0eaa13178e719431add47b78d4e7277.zip |
[fixes #3053] Delay default annotation removal
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/ConstructorsWithSuperBuilderDefaults.java | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ConstructorsWithSuperBuilderDefaults.java b/test/transform/resource/after-ecj/ConstructorsWithSuperBuilderDefaults.java new file mode 100644 index 00000000..a6c97d3b --- /dev/null +++ b/test/transform/resource/after-ecj/ConstructorsWithSuperBuilderDefaults.java @@ -0,0 +1,70 @@ +import lombok.AllArgsConstructor; +import lombok.NoArgsConstructor; +import lombok.experimental.SuperBuilder; +import lombok.Builder; +@NoArgsConstructor @AllArgsConstructor @SuperBuilder class ConstructorsWithSuperBuilderDefaults { + public static abstract @java.lang.SuppressWarnings("all") class ConstructorsWithSuperBuilderDefaultsBuilder<C extends ConstructorsWithSuperBuilderDefaults, B extends ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<C, B>> { + private @java.lang.SuppressWarnings("all") int x$value; + private @java.lang.SuppressWarnings("all") boolean x$set; + private @java.lang.SuppressWarnings("all") int y; + public ConstructorsWithSuperBuilderDefaultsBuilder() { + super(); + } + protected abstract @java.lang.SuppressWarnings("all") B self(); + public abstract @java.lang.SuppressWarnings("all") C build(); + /** + * @return {@code this}. + */ + public @java.lang.SuppressWarnings("all") B x(final int x) { + this.x$value = x; + x$set = true; + return self(); + } + /** + * @return {@code this}. + */ + public @java.lang.SuppressWarnings("all") B y(final int y) { + this.y = y; + return self(); + } + public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { + return (((("ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder(x$value=" + this.x$value) + ", y=") + this.y) + ")"); + } + } + private static final @java.lang.SuppressWarnings("all") class ConstructorsWithSuperBuilderDefaultsBuilderImpl extends ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<ConstructorsWithSuperBuilderDefaults, ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilderImpl> { + private ConstructorsWithSuperBuilderDefaultsBuilderImpl() { + super(); + } + protected @java.lang.Override @java.lang.SuppressWarnings("all") ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilderImpl self() { + return this; + } + public @java.lang.Override @java.lang.SuppressWarnings("all") ConstructorsWithSuperBuilderDefaults build() { + return new ConstructorsWithSuperBuilderDefaults(this); + } + } + @Builder.Default int x; + int y; + private static @java.lang.SuppressWarnings("all") int $default$x() { + return 5; + } + protected @java.lang.SuppressWarnings("all") ConstructorsWithSuperBuilderDefaults(final ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<?, ?> b) { + super(); + if (b.x$set) + this.x = b.x$value; + else + this.x = ConstructorsWithSuperBuilderDefaults.$default$x(); + this.y = b.y; + } + public static @java.lang.SuppressWarnings("all") ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<?, ?> builder() { + return new ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilderImpl(); + } + public @java.lang.SuppressWarnings("all") ConstructorsWithSuperBuilderDefaults() { + super(); + this.x = ConstructorsWithSuperBuilderDefaults.$default$x(); + } + public @java.lang.SuppressWarnings("all") ConstructorsWithSuperBuilderDefaults(final int x, final int y) { + super(); + this.x = x; + this.y = y; + } +}
\ No newline at end of file |