aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/JacksonizedSuperBuilderSimple.java
blob: 7fd3f8dca6926add5d3724afba3a07a18a0564ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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();
	}
}