@@ -516,7 +516,7 @@ public JsonToken nextToken() throws JacksonException
516
516
_tokenInputTotal = _currInputProcessed + _inputPtr ;
517
517
518
518
// also: clear any data retained for previous token
519
- clearRetainedValues ();
519
+ _clearRetainedValues ();
520
520
521
521
// First: need to keep track of lengths of defined-length Arrays and
522
522
// Objects (to materialize END_ARRAY/END_OBJECT as necessary);
@@ -1148,7 +1148,7 @@ public boolean nextName(SerializableString str) throws JacksonException
1148
1148
}
1149
1149
_tokenInputTotal = _currInputProcessed + _inputPtr ;
1150
1150
// need to clear retained values for previous token
1151
- clearRetainedValues ();
1151
+ _clearRetainedValues ();
1152
1152
_tagValues .clear ();
1153
1153
// completed the whole Object?
1154
1154
if (!_streamReadContext .expectMoreValues ()) {
@@ -1208,7 +1208,7 @@ public String nextName() throws JacksonException
1208
1208
}
1209
1209
_tokenInputTotal = _currInputProcessed + _inputPtr ;
1210
1210
// need to clear retained values for previous token
1211
- clearRetainedValues ();
1211
+ _clearRetainedValues ();
1212
1212
_tagValues .clear ();
1213
1213
// completed the whole Object?
1214
1214
if (!_streamReadContext .expectMoreValues ()) {
@@ -1309,12 +1309,11 @@ public boolean nextName(SerializableString str) throws JacksonException
1309
1309
{
1310
1310
// Two parsing modes; can only succeed if expecting field name, so handle that first:
1311
1311
if (_streamReadContext.inObject() && _currToken != JsonToken.PROPERTY_NAME) {
1312
- _numTypesValid = NR_UNKNOWN;
1313
1312
if (_tokenIncomplete) {
1314
1313
_skipIncomplete();
1315
1314
}
1316
1315
_tokenInputTotal = _currInputProcessed + _inputPtr;
1317
- _binaryValue = null ;
1316
+ _clearRetainedValues() ;
1318
1317
_tagValues.clear();
1319
1318
// completed the whole Object?
1320
1319
if (!_streamReadContext.expectMoreValues()) {
@@ -1371,7 +1370,7 @@ public int nextNameMatch(PropertyNameMatcher matcher) throws JacksonException
1371
1370
_skipIncomplete ();
1372
1371
}
1373
1372
_tokenInputTotal = _currInputProcessed + _inputPtr ;
1374
- clearRetainedValues ();
1373
+ _clearRetainedValues ();
1375
1374
_tagValues .clear ();
1376
1375
_sharedString = null ;
1377
1376
// completed the whole Object?
@@ -4011,9 +4010,9 @@ protected JsonToken _eofAsNextToken() throws JacksonException {
4011
4010
}
4012
4011
4013
4012
/*
4014
- /**********************************************************
4013
+ /**********************************************************************
4015
4014
/* Internal methods, error handling, reporting
4016
- /**********************************************************
4015
+ /**********************************************************************
4017
4016
*/
4018
4017
4019
4018
protected void _invalidToken (int ch ) throws StreamReadException {
@@ -4082,29 +4081,29 @@ private String _reportTruncatedUTF8InName(int strLenBytes, int truncatedCharOffs
4082
4081
4083
4082
private final static BigInteger BIT_63 = BigInteger .ONE .shiftLeft (63 );
4084
4083
4085
- private final BigInteger _bigPositive (long l ) {
4084
+ protected final BigInteger _bigPositive (long l ) {
4086
4085
BigInteger biggie = BigInteger .valueOf ((l << 1 ) >>> 1 );
4087
4086
return biggie .or (BIT_63 );
4088
4087
}
4089
4088
4090
- private final BigInteger _bigNegative (long l ) {
4089
+ protected final BigInteger _bigNegative (long l ) {
4091
4090
// 03-Dec-2017, tatu: [dataformats-binary#124] Careful with overflow
4092
4091
BigInteger unsignedBase = _bigPositive (l );
4093
4092
return unsignedBase .negate ().subtract (BigInteger .ONE );
4094
4093
}
4095
4094
4096
- private void createChildArrayContext (final int len ) throws JacksonException {
4095
+ protected void createChildArrayContext (final int len ) throws JacksonException {
4097
4096
_streamReadContext = _streamReadContext .createChildArrayContext (len );
4098
4097
_streamReadConstraints .validateNestingDepth (_streamReadContext .getNestingDepth ());
4099
4098
}
4100
4099
4101
- private void createChildObjectContext (final int len ) throws JacksonException {
4100
+ protected void createChildObjectContext (final int len ) throws JacksonException {
4102
4101
_streamReadContext = _streamReadContext .createChildObjectContext (len );
4103
4102
_streamReadConstraints .validateNestingDepth (_streamReadContext .getNestingDepth ());
4104
4103
}
4105
4104
4106
4105
// @since 2.20
4107
- private void clearRetainedValues () {
4106
+ protected void _clearRetainedValues () {
4108
4107
_numTypesValid = NR_UNKNOWN ;
4109
4108
_binaryValue = null ;
4110
4109
_simpleValue = null ;
0 commit comments