@@ -848,7 +848,7 @@ public JsonToken nextToken() throws IOException
848848 _tokenInputTotal = _currInputProcessed + _inputPtr ;
849849
850850 // also: clear any data retained for previous token
851- clearRetainedValues ();
851+ _clearRetainedValues ();
852852
853853 // First: need to keep track of lengths of defined-length Arrays and
854854 // Objects (to materialize END_ARRAY/END_OBJECT as necessary);
@@ -1480,7 +1480,7 @@ public boolean nextFieldName(SerializableString str) throws IOException
14801480 }
14811481 _tokenInputTotal = _currInputProcessed + _inputPtr ;
14821482 // need to clear retained values for previous token
1483- clearRetainedValues ();
1483+ _clearRetainedValues ();
14841484 _tagValues .clear ();
14851485 // completed the whole Object?
14861486 if (!_streamReadContext .expectMoreValues ()) {
@@ -1540,7 +1540,7 @@ public String nextFieldName() throws IOException
15401540 }
15411541 _tokenInputTotal = _currInputProcessed + _inputPtr ;
15421542 // need to clear retained values for previous token
1543- clearRetainedValues ();
1543+ _clearRetainedValues ();
15441544 _tagValues .clear ();
15451545 // completed the whole Object?
15461546 if (!_streamReadContext .expectMoreValues ()) {
@@ -4140,7 +4140,7 @@ private void createChildObjectContext(final int len) throws IOException {
41404140 }
41414141
41424142 // @since 2.20
4143- private void clearRetainedValues () {
4143+ protected void _clearRetainedValues () {
41444144 _numTypesValid = NR_UNKNOWN ;
41454145 _binaryValue = null ;
41464146 _simpleValue = null ;
0 commit comments