mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-31 12:10:50 +00:00
@Jacksonized: modify builders that they can be used by Jackson
This commit is contained in:
@@ -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