aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2020-02-16 15:17:20 +0100
committerJan Rieke <it@janrieke.de>2020-03-03 13:01:48 +0100
commit8be4b0ffe6b5e5f89e8bb3d94e87d0aa98dc5aeb (patch)
tree1fc16ba2d1b271f1c2e06eeb2120a71d74ff75ef /test/transform/resource/after-ecj/JacksonizedBuilderSimple.java
parent59aa6761115cb912d5223870be348b70e0e9fd9c (diff)
downloadlombok-8be4b0ffe6b5e5f89e8bb3d94e87d0aa98dc5aeb.tar.gz
lombok-8be4b0ffe6b5e5f89e8bb3d94e87d0aa98dc5aeb.tar.bz2
lombok-8be4b0ffe6b5e5f89e8bb3d94e87d0aa98dc5aeb.zip
@Jacksonized: modify builders that they can be used by Jackson
Diffstat (limited to 'test/transform/resource/after-ecj/JacksonizedBuilderSimple.java')
-rw-r--r--test/transform/resource/after-ecj/JacksonizedBuilderSimple.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java b/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java
new file mode 100644
index 00000000..2e0a4e0c
--- /dev/null
+++ b/test/transform/resource/after-ecj/JacksonizedBuilderSimple.java
@@ -0,0 +1,38 @@
+import java.util.List;
+
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+@lombok.extern.jackson.Jacksonized @JsonIgnoreProperties(ignoreUnknown = true) @lombok.Builder(access = lombok.AccessLevel.PROTECTED) @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder.class) class JacksonizedBuilderSimple<T> {
+ protected static @java.lang.SuppressWarnings("all") @JsonIgnoreProperties(ignoreUnknown = true) @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "",buildMethodName = "build") class JacksonizedBuilderSimpleBuilder<T> {
+ private @java.lang.SuppressWarnings("all") int yes;
+ private @java.lang.SuppressWarnings("all") List<T> also;
+ @java.lang.SuppressWarnings("all") JacksonizedBuilderSimpleBuilder() {
+ super();
+ }
+ public @java.lang.SuppressWarnings("all") JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> yes(final int yes) {
+ this.yes = yes;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> also(final List<T> also) {
+ this.also = also;
+ return this;
+ }
+ public @java.lang.SuppressWarnings("all") JacksonizedBuilderSimple<T> build() {
+ return new JacksonizedBuilderSimple<T>(this.yes, this.also);
+ }
+ public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
+ return (((("JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder(yes=" + this.yes) + ", also=") + this.also) + ")");
+ }
+ }
+ 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) {
+ super();
+ this.yes = yes;
+ this.also = also;
+ }
+ protected static @java.lang.SuppressWarnings("all") <T>JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T> builder() {
+ return new JacksonizedBuilderSimple.JacksonizedBuilderSimpleBuilder<T>();
+ }
+}