aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-03-05 23:16:27 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2020-03-05 23:16:27 +0100
commited412b7e091978e1363c91ba4c05aa304c4fb7d6 (patch)
tree6701aaea93463b9d92f544f4ea06ada5e275f7d7 /test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java
parent0401f49fa6975195f81ff3252fefdbd6409dde6b (diff)
parent3a2a61f807eaedd22eab3c6d78653b7de2ae82a4 (diff)
downloadlombok-ed412b7e091978e1363c91ba4c05aa304c4fb7d6.tar.gz
lombok-ed412b7e091978e1363c91ba4c05aa304c4fb7d6.tar.bz2
lombok-ed412b7e091978e1363c91ba4c05aa304c4fb7d6.zip
Merge branch 'jacksonizedSquash' of git://github.com/janrieke/lombok into janrieke-jacksonizedSquash2
Diffstat (limited to 'test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java')
-rw-r--r--test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java55
1 files changed, 55 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java b/test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java
new file mode 100644
index 00000000..7fd3f8dc
--- /dev/null
+++ b/test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java
@@ -0,0 +1,55 @@
+public class JacksonizedSuperBuilderSimple {
+ @com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
+ @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JacksonizedSuperBuilderSimple.Parent.ParentBuilderImpl.class)
+ public static class Parent {
+ int field1;
+ @java.lang.SuppressWarnings("all")
+ public static abstract class ParentBuilder<C extends JacksonizedSuperBuilderSimple.Parent, B extends JacksonizedSuperBuilderSimple.Parent.ParentBuilder<C, B>> {
+ @java.lang.SuppressWarnings("all")
+ private int field1;
+ @java.lang.SuppressWarnings("all")
+ protected abstract B self();
+ @java.lang.SuppressWarnings("all")
+ public abstract C build();
+ @java.lang.SuppressWarnings("all")
+ public B field1(final int field1) {
+ this.field1 = field1;
+ return self();
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "JacksonizedSuperBuilderSimple.Parent.ParentBuilder(field1=" + this.field1 + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ @com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
+ static final class ParentBuilderImpl extends JacksonizedSuperBuilderSimple.Parent.ParentBuilder<JacksonizedSuperBuilderSimple.Parent, JacksonizedSuperBuilderSimple.Parent.ParentBuilderImpl> {
+ @java.lang.SuppressWarnings("all")
+ private ParentBuilderImpl() {
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ protected JacksonizedSuperBuilderSimple.Parent.ParentBuilderImpl self() {
+ return this;
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public JacksonizedSuperBuilderSimple.Parent build() {
+ return new JacksonizedSuperBuilderSimple.Parent(this);
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ protected Parent(final JacksonizedSuperBuilderSimple.Parent.ParentBuilder<?, ?> b) {
+ this.field1 = b.field1;
+ }
+ @java.lang.SuppressWarnings("all")
+ public static JacksonizedSuperBuilderSimple.Parent.ParentBuilder<?, ?> builder() {
+ return new JacksonizedSuperBuilderSimple.Parent.ParentBuilderImpl();
+ }
+ }
+ public static void test() {
+ Parent x = Parent.builder().field1(5).build();
+ }
+}