|
11 | 11 | import tools.jackson.databind.ObjectMapper;
|
12 | 12 | import tools.jackson.databind.cfg.CoercionAction;
|
13 | 13 | import tools.jackson.databind.cfg.CoercionInputShape;
|
14 |
| -import tools.jackson.databind.cfg.MapperBuilder; |
15 | 14 | import tools.jackson.databind.json.JsonMapper;
|
16 | 15 |
|
17 | 16 | import junit.framework.TestCase;
|
@@ -59,36 +58,36 @@ protected static interface MixinForPolymorphism {
|
59 | 58 | /**********************************************************************
|
60 | 59 | */
|
61 | 60 |
|
62 |
| - protected static MapperBuilder<?,?> mapperWithModuleBuilder() { |
| 61 | + protected static JsonMapper.Builder mapperWithModuleBuilder() { |
63 | 62 | return JsonMapper.builder()
|
64 | 63 | .addModule(new JodaModule());
|
65 | 64 | }
|
66 | 65 |
|
67 |
| - protected static MapperBuilder<?,?> jodaMapperBuilder(DateFormat df) { |
| 66 | + protected static JsonMapper.Builder jodaMapperBuilder(DateFormat df) { |
68 | 67 | return mapperWithModuleBuilder()
|
69 | 68 | .defaultDateFormat(df);
|
70 | 69 | }
|
71 | 70 |
|
72 |
| - protected static MapperBuilder<?,?> jodaMapperBuilder(TimeZone tz) { |
| 71 | + protected static JsonMapper.Builder jodaMapperBuilder(TimeZone tz) { |
73 | 72 | return mapperWithModuleBuilder()
|
74 | 73 | .defaultTimeZone(tz);
|
75 | 74 | }
|
76 | 75 |
|
77 |
| - protected static ObjectMapper mapperWithModule() { |
| 76 | + protected static JsonMapper mapperWithModule() { |
78 | 77 | return mapperWithModuleBuilder().build();
|
79 | 78 | }
|
80 | 79 |
|
81 |
| - protected static ObjectMapper mapperWithModule(DateFormat df) { |
| 80 | + protected static JsonMapper mapperWithModule(DateFormat df) { |
82 | 81 | return jodaMapperBuilder(df)
|
83 | 82 | .build();
|
84 | 83 | }
|
85 | 84 |
|
86 |
| - protected static ObjectMapper mapperWithModule(TimeZone tz) { |
| 85 | + protected static JsonMapper mapperWithModule(TimeZone tz) { |
87 | 86 | return jodaMapperBuilder(tz)
|
88 | 87 | .build();
|
89 | 88 | }
|
90 | 89 |
|
91 |
| - protected static ObjectMapper mapperWithFailFromEmptyString() { |
| 90 | + protected static JsonMapper mapperWithFailFromEmptyString() { |
92 | 91 | return mapperWithModuleBuilder()
|
93 | 92 | .withCoercionConfigDefaults(cfg ->
|
94 | 93 | cfg.setCoercion(CoercionInputShape.EmptyString, CoercionAction.Fail)
|
|
0 commit comments