|
5 | 5 | import com.fasterxml.jackson.databind.*;
|
6 | 6 | import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable;
|
7 | 7 | import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper;
|
8 |
| -import com.fasterxml.jackson.databind.jsonschema.SchemaAware; |
9 | 8 | import com.fasterxml.jackson.databind.jsontype.TypeSerializer;
|
10 | 9 | import com.fasterxml.jackson.databind.ser.ContextualSerializer;
|
11 | 10 | import com.fasterxml.jackson.databind.ser.ResolvableSerializer;
|
|
29 | 28 | public class StdDelegatingSerializer
|
30 | 29 | extends StdSerializer<Object>
|
31 | 30 | implements ContextualSerializer, ResolvableSerializer,
|
32 |
| - JsonFormatVisitable, SchemaAware |
| 31 | + JsonFormatVisitable |
33 | 32 | {
|
34 | 33 | protected final Converter<Object,?> _converter;
|
35 | 34 |
|
@@ -201,22 +200,26 @@ public boolean isEmpty(SerializerProvider prov, Object value)
|
201 | 200 | /**********************************************************
|
202 | 201 | */
|
203 | 202 |
|
| 203 | + @Deprecated |
204 | 204 | @Override
|
205 | 205 | public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
206 | 206 | throws JsonMappingException
|
207 | 207 | {
|
208 |
| - if (_delegateSerializer instanceof SchemaAware) { |
209 |
| - return ((SchemaAware) _delegateSerializer).getSchema(provider, typeHint); |
| 208 | + if (_delegateSerializer instanceof com.fasterxml.jackson.databind.jsonschema.SchemaAware) { |
| 209 | + return ((com.fasterxml.jackson.databind.jsonschema.SchemaAware) _delegateSerializer) |
| 210 | + .getSchema(provider, typeHint); |
210 | 211 | }
|
211 | 212 | return super.getSchema(provider, typeHint);
|
212 | 213 | }
|
213 | 214 |
|
| 215 | + @Deprecated |
214 | 216 | @Override
|
215 | 217 | public JsonNode getSchema(SerializerProvider provider, Type typeHint,
|
216 | 218 | boolean isOptional) throws JsonMappingException
|
217 | 219 | {
|
218 |
| - if (_delegateSerializer instanceof SchemaAware) { |
219 |
| - return ((SchemaAware) _delegateSerializer).getSchema(provider, typeHint, isOptional); |
| 220 | + if (_delegateSerializer instanceof com.fasterxml.jackson.databind.jsonschema.SchemaAware) { |
| 221 | + return ((com.fasterxml.jackson.databind.jsonschema.SchemaAware) _delegateSerializer) |
| 222 | + .getSchema(provider, typeHint, isOptional); |
220 | 223 | }
|
221 | 224 | return super.getSchema(provider, typeHint);
|
222 | 225 | }
|
|
0 commit comments