-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Sealed classes are coming to Java soon. Jackson can use them to remove the need to specify @JsonSubTypes
because they are known from the sealing class:
@JsonSubTypes({
@JsonSubTypes.Type(value = A.class),
@JsonSubTypes.Type(value = B.class)
})
public interface L {
record A(int a) implements L {}
record B(int b) implements L {}
}
can be
public sealed interface L {
record A(int a) implements L {}
record B(int b) implements L {}
}
UkonnRa, helpermethod, RyanHoldren, almson, sansnom and 25 more
Metadata
Metadata
Assignees
Labels
No labels