@@ -48,9 +48,9 @@ public class ObjectReader
48
48
protected final static JavaType JSON_NODE_TYPE = SimpleType .constructUnsafe (JsonNode .class );
49
49
50
50
/*
51
- /**********************************************************
51
+ /**********************************************************************
52
52
/* Immutable configuration from ObjectMapper
53
- /**********************************************************
53
+ /**********************************************************************
54
54
*/
55
55
56
56
/**
@@ -80,11 +80,11 @@ public class ObjectReader
80
80
* Default value to be null as filter not considered.
81
81
*/
82
82
private final TokenFilter _filter ;
83
-
83
+
84
84
/*
85
- /**********************************************************
85
+ /**********************************************************************
86
86
/* Configuration that can be changed during building
87
- /**********************************************************
87
+ /**********************************************************************
88
88
*/
89
89
90
90
/**
@@ -127,9 +127,9 @@ public class ObjectReader
127
127
protected final InjectableValues _injectableValues ;
128
128
129
129
/*
130
- /**********************************************************
130
+ /**********************************************************************
131
131
/* Caching
132
- /**********************************************************
132
+ /**********************************************************************
133
133
*/
134
134
135
135
/**
@@ -139,9 +139,9 @@ public class ObjectReader
139
139
final protected ConcurrentHashMap <JavaType , JsonDeserializer <Object >> _rootDeserializers ;
140
140
141
141
/*
142
- /**********************************************************
142
+ /**********************************************************************
143
143
/* Life-cycle, construction
144
- /**********************************************************
144
+ /**********************************************************************
145
145
*/
146
146
147
147
/**
@@ -214,26 +214,7 @@ protected ObjectReader(ObjectReader base, DeserializationConfig config)
214
214
_unwrapRoot = config .useRootWrapping ();
215
215
_filter = base ._filter ;
216
216
}
217
-
218
- protected ObjectReader (ObjectReader base , TokenStreamFactory f )
219
- {
220
- // may need to override ordering, based on data format capabilities
221
- _config = base ._config
222
- .with (MapperFeature .SORT_PROPERTIES_ALPHABETICALLY , f .requiresPropertyOrdering ());
223
- _context = base ._context ;
224
217
225
- _rootDeserializers = base ._rootDeserializers ;
226
- _parserFactory = f ;
227
-
228
- _valueType = base ._valueType ;
229
- _rootDeserializer = base ._rootDeserializer ;
230
- _valueToUpdate = base ._valueToUpdate ;
231
- _schema = base ._schema ;
232
- _injectableValues = base ._injectableValues ;
233
- _unwrapRoot = base ._unwrapRoot ;
234
- _filter = base ._filter ;
235
- }
236
-
237
218
protected ObjectReader (ObjectReader base , TokenFilter filter ) {
238
219
_config = base ._config ;
239
220
_context = base ._context ;
@@ -258,11 +239,11 @@ public Version version() {
258
239
}
259
240
260
241
/*
261
- /**********************************************************
242
+ /**********************************************************************
262
243
/* Helper methods used internally for invoking constructors
263
244
/* Need to be overridden if sub-classing (not recommended)
264
245
/* is used.
265
- /**********************************************************
246
+ /**********************************************************************
266
247
*/
267
248
268
249
/**
@@ -294,9 +275,9 @@ protected <T> MappingIterator<T> _newIterator(JsonParser p, DeserializationConte
294
275
}
295
276
296
277
/*
297
- /**********************************************************
278
+ /**********************************************************************
298
279
/* Methods for initializing parser instance to use
299
- /**********************************************************
280
+ /**********************************************************************
300
281
*/
301
282
302
283
protected JsonToken _initForReading (DefaultDeserializationContext ctxt , JsonParser p )
@@ -333,9 +314,9 @@ protected void _initForMultiRead(DefaultDeserializationContext ctxt, JsonParser
333
314
}
334
315
335
316
/*
336
- /**********************************************************
317
+ /**********************************************************************
337
318
/* Life-cycle, fluent factory methods for DeserializationFeatures
338
- /**********************************************************
319
+ /**********************************************************************
339
320
*/
340
321
341
322
/**
@@ -390,9 +371,9 @@ public ObjectReader withoutFeatures(DeserializationFeature... features) {
390
371
}
391
372
392
373
/*
393
- /**********************************************************
374
+ /**********************************************************************
394
375
/* Life-cycle, fluent factory methods for JsonParser.Features
395
- /**********************************************************
376
+ /**********************************************************************
396
377
*/
397
378
398
379
/**
@@ -428,9 +409,9 @@ public ObjectReader withoutFeatures(JsonParser.Feature... features) {
428
409
}
429
410
430
411
/*
431
- /**********************************************************
432
- /* Life-cycle, fluent factory methods for FormatFeature (2.7)
433
- /**********************************************************
412
+ /**********************************************************************
413
+ /* Life-cycle, fluent factory methods for FormatFeature
414
+ /**********************************************************************
434
415
*/
435
416
436
417
/**
@@ -466,9 +447,9 @@ public ObjectReader withoutFeatures(FormatFeature... features) {
466
447
}
467
448
468
449
/*
469
- /**********************************************************
450
+ /**********************************************************************
470
451
/* Life-cycle, fluent factory methods, other
471
- /**********************************************************
452
+ /**********************************************************************
472
453
*/
473
454
474
455
/**
@@ -689,9 +670,9 @@ public ObjectReader withoutAttribute(Object key) {
689
670
}
690
671
691
672
/*
692
- /**********************************************************
673
+ /**********************************************************************
693
674
/* Internal factory methods
694
- /**********************************************************
675
+ /**********************************************************************
695
676
*/
696
677
697
678
protected final ObjectReader _with (DeserializationConfig newConfig ) {
@@ -700,11 +681,11 @@ protected final ObjectReader _with(DeserializationConfig newConfig) {
700
681
}
701
682
return _new (this , newConfig );
702
683
}
703
-
684
+
704
685
/*
705
- /**********************************************************
686
+ /**********************************************************************
706
687
/* Simple accessors
707
- /**********************************************************
688
+ /**********************************************************************
708
689
*/
709
690
710
691
public boolean isEnabled (DeserializationFeature f ) {
@@ -764,10 +745,10 @@ public TypeFactory getTypeFactory() {
764
745
}
765
746
766
747
/*
767
- /**********************************************************
748
+ /**********************************************************************
768
749
/* Public API: constructing Parsers that are properly linked
769
750
/* to `ObjectReadContext`
770
- /**********************************************************
751
+ /**********************************************************************
771
752
*/
772
753
773
754
/**
@@ -914,9 +895,9 @@ public JsonParser createNonBlockingByteArrayParser() throws IOException {
914
895
}
915
896
916
897
/*
917
- /**********************************************************
898
+ /**********************************************************************
918
899
/* Convenience methods for JsonNode creation
919
- /**********************************************************
900
+ /**********************************************************************
920
901
*/
921
902
922
903
public ObjectNode createObjectNode () {
@@ -928,10 +909,9 @@ public ArrayNode createArrayNode() {
928
909
}
929
910
930
911
/*
931
- /**********************************************************
932
- /* Deserialization methods; first ones for pre-constructed
933
- /* parsers
934
- /**********************************************************
912
+ /**********************************************************************
913
+ /* Deserialization methods; first ones for pre-constructed parsers
914
+ /**********************************************************************
935
915
*/
936
916
937
917
/**
@@ -1101,9 +1081,9 @@ public <T> Iterator<T> readValues(JsonParser p, JavaType valueType) throws IOExc
1101
1081
}
1102
1082
1103
1083
/*
1104
- /**********************************************************
1084
+ /**********************************************************************
1105
1085
/* TreeCodec impl
1106
- /**********************************************************
1086
+ /**********************************************************************
1107
1087
*/
1108
1088
1109
1089
public JsonParser treeAsTokens (TreeNode n ) {
@@ -1131,9 +1111,9 @@ public <T extends TreeNode> T readTree(JsonParser p) throws IOException {
1131
1111
}
1132
1112
1133
1113
/*
1134
- /**********************************************************
1114
+ /**********************************************************************
1135
1115
/* Deserialization methods; others similar to what ObjectMapper has
1136
- /**********************************************************
1116
+ /**********************************************************************
1137
1117
*/
1138
1118
1139
1119
/**
@@ -1307,9 +1287,9 @@ public JsonNode readTree(DataInput src) throws IOException
1307
1287
}
1308
1288
1309
1289
/*
1310
- /**********************************************************
1290
+ /**********************************************************************
1311
1291
/* Deserialization methods; reading sequence of values
1312
- /**********************************************************
1292
+ /**********************************************************************
1313
1293
*/
1314
1294
1315
1295
/**
@@ -1433,9 +1413,9 @@ public <T> MappingIterator<T> readValues(DataInput src) throws IOException
1433
1413
}
1434
1414
1435
1415
/*
1436
- /**********************************************************
1416
+ /**********************************************************************
1437
1417
/* Implementation of rest of ObjectCodec methods
1438
- /**********************************************************
1418
+ /**********************************************************************
1439
1419
*/
1440
1420
1441
1421
public <T > T treeToValue (TreeNode n , Class <T > valueType ) throws JsonProcessingException
@@ -1450,9 +1430,9 @@ public <T> T treeToValue(TreeNode n, Class<T> valueType) throws JsonProcessingEx
1450
1430
}
1451
1431
1452
1432
/*
1453
- /**********************************************************
1433
+ /**********************************************************************
1454
1434
/* Helper methods, data-binding
1455
- /**********************************************************
1435
+ /**********************************************************************
1456
1436
*/
1457
1437
1458
1438
/**
@@ -1644,9 +1624,9 @@ protected final void _verifyNoTrailingTokens(JsonParser p, DeserializationContex
1644
1624
}
1645
1625
1646
1626
/*
1647
- /**********************************************************
1627
+ /**********************************************************************
1648
1628
/* Internal methods, other
1649
- /**********************************************************
1629
+ /**********************************************************************
1650
1630
*/
1651
1631
1652
1632
protected void _verifySchemaType (FormatSchema schema )
@@ -1689,9 +1669,9 @@ protected void _reportUndetectableSource(Object src) throws JsonProcessingExcept
1689
1669
}
1690
1670
1691
1671
/*
1692
- /**********************************************************
1672
+ /**********************************************************************
1693
1673
/* Helper methods, locating deserializers etc
1694
- /**********************************************************
1674
+ /**********************************************************************
1695
1675
*/
1696
1676
1697
1677
/**
0 commit comments