mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 22:16:11 +00:00
@Jacksonized: modify builders that they can be used by Jackson
This commit is contained in:
1 parent
59aa676111
commit
8be4b0ffe6
30 files changed
+1099
-70
No files matched your search
@@ -0,0 +1,12 @@
|
||||
public class JacksonizedSuperBuilderSimple {
|
||||
@lombok.extern.jackson.Jacksonized
|
||||
@lombok.experimental.SuperBuilder
|
||||
@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public static class Parent {
|
||||
int field1;
|
||||
}
|
||||
|
||||
public static void test() {
|
||||
Parent x = Parent.builder().field1(5).build();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user