aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2020-04-17 01:37:08 +0200
committerGitHub <noreply@github.com>2020-04-17 01:37:08 +0200
commit20cce2049de56d5a71c6dcc376d6f4088d4552bc (patch)
treec2eeec699f50e15b07c329d9e6b969369c9e12b8 /test/transform/resource/before
parent9d50e9f8ad16c463b6ff9dbb87fd7a012c68bfef (diff)
parentdede79bc224eb16566a027f83214c04e065b575b (diff)
downloadlombok-20cce2049de56d5a71c6dcc376d6f4088d4552bc.tar.gz
lombok-20cce2049de56d5a71c6dcc376d6f4088d4552bc.tar.bz2
lombok-20cce2049de56d5a71c6dcc376d6f4088d4552bc.zip
Merge pull request #2429 from janrieke/jacksonAndSingularAnnotationCopy
Copy more Jackson annotation to the builder, also to @Singular methods
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/JacksonBuilderSingular.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/transform/resource/before/JacksonBuilderSingular.java b/test/transform/resource/before/JacksonBuilderSingular.java
new file mode 100644
index 00000000..c179c760
--- /dev/null
+++ b/test/transform/resource/before/JacksonBuilderSingular.java
@@ -0,0 +1,31 @@
+import java.util.List;
+import java.util.Map;
+
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.collect.ImmutableList;
+import com.google.common.collect.ImmutableMap;
+
+import lombok.Builder;
+import lombok.Singular;
+import lombok.extern.jackson.Jacksonized;
+
+@Jacksonized
+@Builder
+public class JacksonBuilderSingular {
+ @JsonAnySetter
+ @Singular("any")
+ private Map<String, Object> any;
+
+ @JsonProperty("v_a_l_u_e_s")
+ @Singular
+ private List<String> values;
+
+ @JsonAnySetter
+ @Singular("guavaAny")
+ private ImmutableMap<String, Object> guavaAny;
+
+ @JsonProperty("guava_v_a_l_u_e_s")
+ @Singular
+ private ImmutableList<String> guavaValues;
+}