Skip to content

Commit

Permalink
Minor cleanup wrt MinimalParserBase constructor use byt TokenBuffer…
Browse files Browse the repository at this point in the history
…, TreeTraversingParser (#4632)
  • Loading branch information
cowtowncoder authored Jul 22, 2024
1 parent 84cce66 commit f3c84db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class TreeTraversingParser extends ParserMinimalBase

public TreeTraversingParser(JsonNode n, ObjectCodec codec)
{
super(0);
super(StreamReadConstraints.defaults());
_objectCodec = codec;
_nodeCursor = new NodeCursor.RootCursor(n, null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1470,11 +1470,6 @@ protected final static class Parser

protected ObjectCodec _codec;

/**
* @since 2.15
*/
protected StreamReadConstraints _streamReadConstraints;

/**
* @since 2.3
*/
Expand Down Expand Up @@ -1543,11 +1538,10 @@ public Parser(Segment firstSeg, ObjectCodec codec,
// 25-Jun-2022, tatu: Ideally would pass parser flags along (as
// per [databund#3528]) but for now make sure not to clear the flags
// but let defaults be used
super();
super(streamReadConstraints);
_segment = firstSeg;
_segmentPtr = -1; // not yet read
_codec = codec;
_streamReadConstraints = streamReadConstraints;
_parsingContext = TokenBufferReadContext.createRootContext(parentContext);
_hasNativeTypeIds = hasNativeTypeIds;
_hasNativeObjectIds = hasNativeObjectIds;
Expand Down

0 comments on commit f3c84db

Please sign in to comment.