|
14 | 14 |
|
15 | 15 | import com.fasterxml.jackson.databind.*; |
16 | 16 | import com.fasterxml.jackson.databind.cfg.MapperConfig; |
| 17 | +import com.fasterxml.jackson.databind.deser.std.NumberDeserializers; |
17 | 18 | import com.fasterxml.jackson.databind.deser.std.StringDeserializer; |
18 | | -import com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer; |
19 | 19 | import com.fasterxml.jackson.databind.json.JsonMapper; |
20 | 20 | import com.fasterxml.jackson.databind.jsontype.NamedType; |
21 | 21 | import com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder; |
@@ -482,16 +482,16 @@ public void testHasAnyGetter() throws Exception |
482 | 482 | public void testFindDeserializer() throws Exception |
483 | 483 | { |
484 | 484 | final JsonDeserializer<?> deserString = StringDeserializer.instance; |
485 | | - final JsonDeserializer<?> deserObject = UntypedObjectDeserializer.Vanilla.std; |
| 485 | + final JsonDeserializer<?> deserBoolean = NumberDeserializers.find(Boolean.TYPE, "b"); |
486 | 486 |
|
487 | 487 | AnnotationIntrospector intr1 = new IntrospectorWithHandlers(deserString, null); |
488 | | - AnnotationIntrospector intr2 = new IntrospectorWithHandlers(deserObject, null); |
| 488 | + AnnotationIntrospector intr2 = new IntrospectorWithHandlers(deserBoolean, null); |
489 | 489 | AnnotationIntrospector nop = AnnotationIntrospector.nopInstance(); |
490 | 490 | AnnotationIntrospector nop2 = new IntrospectorWithHandlers(JsonDeserializer.None.class, null); |
491 | 491 |
|
492 | 492 | assertSame(deserString, |
493 | 493 | new AnnotationIntrospectorPair(intr1, intr2).findDeserializer(null)); |
494 | | - assertSame(deserObject, |
| 494 | + assertSame(deserBoolean, |
495 | 495 | new AnnotationIntrospectorPair(intr2, intr1).findDeserializer(null)); |
496 | 496 | // also: no-op instance should not block real one, regardless |
497 | 497 | assertSame(deserString, |
|
0 commit comments