aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/JacksonizedBuilderSimple.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/JacksonizedBuilderSimple.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/JacksonizedBuilderSimple.java')
-rw-r--r--test/transform/resource/after-delombok/JacksonizedBuilderSimple.java50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/JacksonizedBuilderSimple.java b/test/transform/resource/after-delombok/JacksonizedBuilderSimple.java
new file mode 100644
index 00000000..bd79df90
--- /dev/null
+++ b/test/transform/resource/after-delombok/JacksonizedBuilderSimple.java
@@ -0,0 +1,50 @@
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+@JsonIgnoreProperties(ignoreUnknown = true)
+@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder.class)
+class JacksonizedBuilderSimple<T> {
+ private final int noshow = 0;
+ private final int yes;
+ private List<T> also;
+ private int $butNotMe;
+ @java.lang.SuppressWarnings("all")
+ JacksonizedBuilderSimple(final int yes, final List<T> also) {
+ this.yes = yes;
+ this.also = also;
+ }
+ @java.lang.SuppressWarnings("all")
+ @JsonIgnoreProperties(ignoreUnknown = true)
+ @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
+ protected static class JacksonizedBuilderSimpleBuilder<T> {
+ @java.lang.SuppressWarnings("all")
+ private int yes;
+ @java.lang.SuppressWarnings("all")
+ private List<T> also;
+ @java.lang.SuppressWarnings("all")
+ JacksonizedBuilderSimpleBuilder() {
+ }
+ @java.lang.SuppressWarnings("all")
+ public JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> yes(final int yes) {
+ this.yes = yes;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> also(final List<T> also) {
+ this.also = also;
+ return this;
+ }
+ @java.lang.SuppressWarnings("all")
+ public JacksonizedBuilderSimple<T> build() {
+ return new JacksonizedBuilderSimple<T>(this.yes, this.also);
+ }
+ @java.lang.Override
+ @java.lang.SuppressWarnings("all")
+ public java.lang.String toString() {
+ return "JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder(yes=" + this.yes + ", also=" + this.also + ")";
+ }
+ }
+ @java.lang.SuppressWarnings("all")
+ protected static <T> JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> builder() {
+ return new JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T>();
+ }
+}