|
13 | 13 | import javax.xml.stream.XMLStreamWriter;
|
14 | 14 |
|
15 | 15 | import com.fasterxml.jackson.core.*;
|
16 |
| -import com.fasterxml.jackson.core.JsonParser.NumberTypeFP; |
17 | 16 | import com.fasterxml.jackson.core.base.ParserMinimalBase;
|
18 | 17 | import com.fasterxml.jackson.core.exc.StreamConstraintsException;
|
19 | 18 | import com.fasterxml.jackson.core.io.IOContext;
|
@@ -183,11 +182,6 @@ private Feature(boolean defaultState) {
|
183 | 182 |
|
184 | 183 | protected final IOContext _ioContext;
|
185 | 184 |
|
186 |
| - /** |
187 |
| - * @since 2.15 |
188 |
| - */ |
189 |
| - protected final StreamReadConstraints _streamReadConstraints; |
190 |
| - |
191 | 185 | /**
|
192 | 186 | * Flag that indicates whether parser is closed or not. Gets
|
193 | 187 | * set when parser is either closed by explicit call
|
@@ -280,10 +274,9 @@ public FromXmlParser(IOContext ctxt, int genericParserFeatures, int xmlFeatures,
|
280 | 274 | ObjectCodec codec, XMLStreamReader xmlReader, XmlNameProcessor tagProcessor)
|
281 | 275 | throws IOException
|
282 | 276 | {
|
283 |
| - super(genericParserFeatures); |
| 277 | + super(genericParserFeatures, ctxt.streamReadConstraints()); |
284 | 278 | _formatFeatures = xmlFeatures;
|
285 | 279 | _ioContext = ctxt;
|
286 |
| - _streamReadConstraints = ctxt.streamReadConstraints(); |
287 | 280 | _objectCodec = codec;
|
288 | 281 | _parsingContext = XmlReadContext.createRootContext(-1, -1);
|
289 | 282 | _xmlTokens = new XmlTokenStream(xmlReader, ctxt.contentReference(),
|
@@ -405,11 +398,6 @@ public FromXmlParser configure(Feature f, boolean state) {
|
405 | 398 | return this;
|
406 | 399 | }
|
407 | 400 |
|
408 |
| - @Override |
409 |
| - public StreamReadConstraints streamReadConstraints() { |
410 |
| - return _streamReadConstraints; |
411 |
| - } |
412 |
| - |
413 | 401 | /*
|
414 | 402 | /**********************************************************
|
415 | 403 | /* FormatFeature support
|
|
0 commit comments