@@ -342,7 +342,7 @@ protected JsonToken _finishHeader(int state) throws IOException
342
342
case 0 :
343
343
if (_inputPtr >= _inputEnd ) {
344
344
_pending32 = state ;
345
- return _updateToken ( JsonToken . NOT_AVAILABLE );
345
+ return _updateTokenToNA ( );
346
346
}
347
347
ch = _inputBuffer [_inputPtr ++];
348
348
if (ch != SmileConstants .HEADER_BYTE_2 ) {
@@ -354,7 +354,7 @@ protected JsonToken _finishHeader(int state) throws IOException
354
354
case 1 :
355
355
if (_inputPtr >= _inputEnd ) {
356
356
_pending32 = state ;
357
- return _updateToken ( JsonToken . NOT_AVAILABLE );
357
+ return _updateTokenToNA ( );
358
358
}
359
359
ch = _inputBuffer [_inputPtr ++];
360
360
if (ch != SmileConstants .HEADER_BYTE_3 ) {
@@ -365,7 +365,7 @@ protected JsonToken _finishHeader(int state) throws IOException
365
365
case 2 :
366
366
if (_inputPtr >= _inputEnd ) {
367
367
_pending32 = state ;
368
- return _updateToken ( JsonToken . NOT_AVAILABLE );
368
+ return _updateTokenToNA ( );
369
369
}
370
370
ch = _inputBuffer [_inputPtr ++];
371
371
{
@@ -490,7 +490,7 @@ private final JsonToken _startValue(int ch) throws IOException
490
490
// did not get it all; mark the state so we know where to return:
491
491
_pending32 = ch ;
492
492
_minorState = MINOR_VALUE_STRING_SHARED_2BYTE ;
493
- return _updateToken ( JsonToken . NOT_AVAILABLE );
493
+ return _updateTokenToNA ( );
494
494
case 0x18 : // START_ARRAY
495
495
return _startArrayScope ();
496
496
case 0x19 : // END_ARRAY
@@ -541,7 +541,7 @@ protected final JsonToken _startFieldName(int ch) throws IOException
541
541
{
542
542
_minorState = MINOR_FIELD_NAME_2BYTE ;
543
543
_pending32 = (ch & 0x3 ) << 8 ;
544
- return _updateToken ( JsonToken . NOT_AVAILABLE );
544
+ return _updateTokenToNA ( );
545
545
}
546
546
case 0x34 : // long ASCII/Unicode name
547
547
return _finishLongFieldName (0 );
@@ -581,7 +581,7 @@ protected final JsonToken _startFieldName(int ch) throws IOException
581
581
}
582
582
}
583
583
_minorState = MINOR_FIELD_NAME_SHORT_ASCII ;
584
- return _updateToken ( JsonToken . NOT_AVAILABLE );
584
+ return _updateTokenToNA ( );
585
585
586
586
case 3 : // short Unicode; possibly doable
587
587
// all valid, except for 0xFF
@@ -622,7 +622,7 @@ protected final JsonToken _startFieldName(int ch) throws IOException
622
622
System .arraycopy (_inputBuffer , inputPtr , _inputCopy , 0 , left );
623
623
}
624
624
_minorState = MINOR_FIELD_NAME_SHORT_UNICODE ;
625
- return _updateToken ( JsonToken . NOT_AVAILABLE );
625
+ return _updateTokenToNA ( );
626
626
}
627
627
}
628
628
// Other byte values are illegal
@@ -653,7 +653,7 @@ private final JsonToken _finishLongFieldName(int outPtr) throws IOException
653
653
_inputPtr = srcPtr ;
654
654
_minorState = MINOR_FIELD_NAME_LONG ;
655
655
_inputCopyLen = outPtr ;
656
- return _updateToken ( JsonToken . NOT_AVAILABLE );
656
+ return _updateTokenToNA ( );
657
657
}
658
658
// otherwise increase copy buffer length
659
659
int oldLen = copyBuffer .length ;
@@ -733,7 +733,7 @@ private final JsonToken _startShortASCII(final int len) throws IOException
733
733
System .arraycopy (_inputBuffer , inputPtr , _inputCopy , 0 , left );
734
734
}
735
735
_minorState = MINOR_VALUE_STRING_SHORT_ASCII ;
736
- return _updateToken ( JsonToken . NOT_AVAILABLE );
736
+ return _updateTokenToNA ( );
737
737
}
738
738
739
739
private final JsonToken _startShortUnicode (final int len ) throws IOException
@@ -756,7 +756,7 @@ private final JsonToken _startShortUnicode(final int len) throws IOException
756
756
_inputPtr = inPtr + left ;
757
757
}
758
758
_minorState = MINOR_VALUE_STRING_SHORT_UNICODE ;
759
- return _updateToken ( JsonToken . NOT_AVAILABLE );
759
+ return _updateTokenToNA ( );
760
760
}
761
761
762
762
/*
@@ -792,7 +792,7 @@ private final JsonToken _startLongASCII() throws IOException
792
792
// denote current length; no partial input to save
793
793
_textBuffer .setCurrentLength (outPtr );
794
794
_minorState = MINOR_VALUE_STRING_LONG_ASCII ;
795
- return _updateToken ( JsonToken . NOT_AVAILABLE );
795
+ return _updateTokenToNA ( );
796
796
}
797
797
798
798
private final JsonToken _finishLongASCII () throws IOException
@@ -932,7 +932,7 @@ protected final JsonToken _startLongUnicode() throws IOException
932
932
}
933
933
_textBuffer .setCurrentLength (outPtr );
934
934
_minorState = MINOR_VALUE_STRING_LONG_UNICODE ;
935
- return _updateToken ( JsonToken . NOT_AVAILABLE );
935
+ return _updateTokenToNA ( );
936
936
}
937
937
938
938
private final JsonToken _finishLongUnicode () throws IOException
@@ -1199,7 +1199,7 @@ private final JsonToken _finishInt(int value, int bytesRead) throws IOException
1199
1199
_minorState = MINOR_VALUE_NUMBER_INT ;
1200
1200
_pending32 = value ;
1201
1201
_inputCopyLen = bytesRead ;
1202
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1202
+ return _updateTokenToNA ( );
1203
1203
}
1204
1204
1205
1205
private final JsonToken _startLong () throws IOException
@@ -1253,7 +1253,7 @@ private final JsonToken _finishLong(long value, int bytesRead) throws IOExceptio
1253
1253
_minorState = MINOR_VALUE_NUMBER_LONG ;
1254
1254
_pending64 = value ;
1255
1255
_inputCopyLen = bytesRead ;
1256
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1256
+ return _updateTokenToNA ( );
1257
1257
}
1258
1258
1259
1259
private final JsonToken _startBigInt () throws IOException
@@ -1285,7 +1285,7 @@ private final JsonToken _finishBigIntLen(int value, int bytesRead) throws IOExce
1285
1285
_minorState = MINOR_VALUE_NUMBER_BIGINT_LEN ;
1286
1286
_pending32 = value ;
1287
1287
_inputCopyLen = bytesRead ;
1288
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1288
+ return _updateTokenToNA ( );
1289
1289
}
1290
1290
1291
1291
private final JsonToken _finishBigIntBody () throws IOException
@@ -1299,7 +1299,7 @@ private final JsonToken _finishBigIntBody() throws IOException
1299
1299
return _valueComplete (JsonToken .VALUE_NUMBER_INT );
1300
1300
}
1301
1301
_minorState = MINOR_VALUE_NUMBER_BIGINT_BODY ;
1302
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1302
+ return _updateTokenToNA ( );
1303
1303
}
1304
1304
1305
1305
/*
@@ -1339,7 +1339,7 @@ protected final JsonToken _finishFloat(int value, int bytesRead) throws IOExcept
1339
1339
_minorState = MINOR_VALUE_NUMBER_FLOAT ;
1340
1340
_pending32 = value ;
1341
1341
_inputCopyLen = bytesRead ;
1342
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1342
+ return _updateTokenToNA ( );
1343
1343
}
1344
1344
1345
1345
protected final JsonToken _startDouble () throws IOException
@@ -1378,7 +1378,7 @@ protected final JsonToken _finishDouble(long value, int bytesRead) throws IOExce
1378
1378
_minorState = MINOR_VALUE_NUMBER_DOUBLE ;
1379
1379
_pending64 = value ;
1380
1380
_inputCopyLen = bytesRead ;
1381
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1381
+ return _updateTokenToNA ( );
1382
1382
}
1383
1383
1384
1384
private final JsonToken _startBigDecimal () throws IOException
@@ -1411,7 +1411,7 @@ private final JsonToken _finishBigDecimalScale(int value, int bytesRead) throws
1411
1411
// note! Scale stored here, need _pending32 for byte length
1412
1412
_pending64 = value ;
1413
1413
_inputCopyLen = bytesRead ;
1414
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1414
+ return _updateTokenToNA ( );
1415
1415
}
1416
1416
1417
1417
private final JsonToken _finishBigDecimalLen (int value , int bytesRead ) throws IOException
@@ -1432,7 +1432,7 @@ private final JsonToken _finishBigDecimalLen(int value, int bytesRead) throws IO
1432
1432
_minorState = MINOR_VALUE_NUMBER_BIGDEC_LEN ;
1433
1433
_pending32 = value ;
1434
1434
_inputCopyLen = bytesRead ;
1435
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1435
+ return _updateTokenToNA ( );
1436
1436
}
1437
1437
1438
1438
private final JsonToken _finishBigDecimalBody () throws IOException
@@ -1449,7 +1449,7 @@ private final JsonToken _finishBigDecimalBody() throws IOException
1449
1449
return _valueComplete (JsonToken .VALUE_NUMBER_FLOAT );
1450
1450
}
1451
1451
_minorState = MINOR_VALUE_NUMBER_BIGDEC_BODY ;
1452
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1452
+ return _updateTokenToNA ( );
1453
1453
}
1454
1454
1455
1455
/*
@@ -1490,7 +1490,7 @@ private final JsonToken _finishRawBinaryLen(int value, int bytesRead) throws IOE
1490
1490
_minorState = MINOR_VALUE_BINARY_RAW_LEN ;
1491
1491
_pending32 = value ;
1492
1492
_inputCopyLen = bytesRead ;
1493
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1493
+ return _updateTokenToNA ( );
1494
1494
}
1495
1495
1496
1496
private final JsonToken _finishRawBinaryBody () throws IOException
@@ -1512,7 +1512,7 @@ private final JsonToken _finishRawBinaryBody() throws IOException
1512
1512
_pending32 = totalLen ;
1513
1513
_inputCopyLen = offset +avail ;
1514
1514
_minorState = MINOR_VALUE_BINARY_RAW_BODY ;
1515
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1515
+ return _updateTokenToNA ( );
1516
1516
}
1517
1517
1518
1518
private final JsonToken _start7BitBinary () throws IOException
@@ -1544,7 +1544,7 @@ private final JsonToken _finish7BitBinaryLen(int value, int bytesRead) throws IO
1544
1544
_minorState = MINOR_VALUE_BINARY_7BIT_LEN ;
1545
1545
_pending32 = value ;
1546
1546
_inputCopyLen = bytesRead ;
1547
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1547
+ return _updateTokenToNA ( );
1548
1548
}
1549
1549
1550
1550
private final JsonToken _finish7BitBinaryBody () throws IOException
@@ -1554,7 +1554,7 @@ private final JsonToken _finish7BitBinaryBody() throws IOException
1554
1554
return _valueComplete (JsonToken .VALUE_EMBEDDED_OBJECT );
1555
1555
}
1556
1556
_minorState = MINOR_VALUE_BINARY_7BIT_BODY ;
1557
- return _updateToken ( JsonToken . NOT_AVAILABLE );
1557
+ return _updateTokenToNA ( );
1558
1558
}
1559
1559
1560
1560
/*
0 commit comments