File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
orchestration/src/main/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1010import java .util .ArrayList ;
1111import java .util .List ;
1212import javax .annotation .Nonnull ;
13+ import lombok .AllArgsConstructor ;
1314
1415/**
1516 * Handles polymorphic deserialization for a base class or interface.
2324 * @param <T> The base type for deserialization.
2425 */
2526@ Beta
27+ @ AllArgsConstructor (access = lombok .AccessLevel .PRIVATE )
2628public class PolymorphicFallbackDeserializer <T > extends JsonDeserializer <T > {
2729
28- @ Nonnull private final List <Class <? extends T >> candidates ;
2930 @ Nonnull private final Class <T > baseClass ;
30-
31- private PolymorphicFallbackDeserializer (
32- @ Nonnull final Class <T > baseClass , @ Nonnull final List <Class <? extends T >> candidates ) {
33- this .baseClass = baseClass ;
34- this .candidates = candidates ;
35- }
31+ @ Nonnull private final List <Class <? extends T >> candidates ;
3632
3733 /**
3834 * Constructs the deserializer using candidates inferred from the {@link JsonSubTypes} annotation.
You can’t perform that action at this time.
0 commit comments