File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
orchestration/src/main/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 1 file changed +3
-2
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 .AccessLevel ;
1314import lombok .AllArgsConstructor ;
1415
1516/**
2425 * @param <T> The base type for deserialization.
2526 */
2627@ Beta
27- @ AllArgsConstructor (access = lombok . AccessLevel .PRIVATE )
28+ @ AllArgsConstructor (access = AccessLevel .PROTECTED )
2829public class PolymorphicFallbackDeserializer <T > extends JsonDeserializer <T > {
2930
3031 @ Nonnull private final Class <T > baseClass ;
@@ -49,7 +50,7 @@ protected static <T> PolymorphicFallbackDeserializer<T> fromJsonSubTypes(
4950 candidates .add ((Class <? extends T >) subType .value ());
5051 }
5152
52- return new PolymorphicFallbackDeserializer <> (baseClass , candidates );
53+ return PolymorphicFallbackDeserializer . fromCandidates (baseClass , candidates );
5354 }
5455
5556 /**
You can’t perform that action at this time.
0 commit comments