aboutsummaryrefslogtreecommitdiff
path: root/test/stubs/com
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/stubs/com
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/stubs/com')
-rw-r--r--test/stubs/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java12
-rw-r--r--test/stubs/com/fasterxml/jackson/databind/annotation/JsonDeserialize.java12
-rw-r--r--test/stubs/com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.java10
3 files changed, 34 insertions, 0 deletions
diff --git a/test/stubs/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java b/test/stubs/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java
new file mode 100644
index 00000000..c90ef914
--- /dev/null
+++ b/test/stubs/com/fasterxml/jackson/annotation/JsonIgnoreProperties.java
@@ -0,0 +1,12 @@
+package com.fasterxml.jackson.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface JsonIgnoreProperties {
+ public boolean ignoreUnknown() default false;
+}
diff --git a/test/stubs/com/fasterxml/jackson/databind/annotation/JsonDeserialize.java b/test/stubs/com/fasterxml/jackson/databind/annotation/JsonDeserialize.java
new file mode 100644
index 00000000..0964f82c
--- /dev/null
+++ b/test/stubs/com/fasterxml/jackson/databind/annotation/JsonDeserialize.java
@@ -0,0 +1,12 @@
+package com.fasterxml.jackson.databind.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE, ElementType.PARAMETER})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface JsonDeserialize {
+ public Class<?> builder() default Void.class;
+}
diff --git a/test/stubs/com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.java b/test/stubs/com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.java
new file mode 100644
index 00000000..4906dc58
--- /dev/null
+++ b/test/stubs/com/fasterxml/jackson/databind/annotation/JsonPOJOBuilder.java
@@ -0,0 +1,10 @@
+package com.fasterxml.jackson.databind.annotation;
+
+import java.lang.annotation.*;
+
+@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
+@Retention(RetentionPolicy.RUNTIME)
+public @interface JsonPOJOBuilder {
+ public String buildMethodName() default "build";
+ public String withPrefix() default "with";
+}