Skip to content

Commit 21c94df

Browse files
committed
Minor renaming for clarity
1 parent 0f31d73 commit 21c94df

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/main/java/com/fasterxml/jackson/core/json/ReaderBasedJsonParser.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ public final JsonToken nextToken() throws IOException
799799
case '7':
800800
case '8':
801801
case '9':
802-
t = _parsePosNumber(i);
802+
t = _parseUnsignedNumber(i);
803803
break;
804804
default:
805805
t = _handleOddValue(i);
@@ -1002,7 +1002,7 @@ public String nextFieldName() throws IOException
10021002
case '7':
10031003
case '8':
10041004
case '9':
1005-
t = _parsePosNumber(i);
1005+
t = _parseUnsignedNumber(i);
10061006
break;
10071007
case 'f':
10081008
_matchFalse();
@@ -1081,7 +1081,7 @@ private final void _isNextTokenNameYes(int i) throws IOException
10811081
case '7':
10821082
case '8':
10831083
case '9':
1084-
_nextToken = _parsePosNumber(i);
1084+
_nextToken = _parseUnsignedNumber(i);
10851085
return;
10861086
}
10871087
_nextToken = _handleOddValue(i);
@@ -1126,7 +1126,7 @@ protected boolean _isNextTokenNameMaybe(int i, String nameToMatch) throws IOExce
11261126
case '7':
11271127
case '8':
11281128
case '9':
1129-
t = _parsePosNumber(i);
1129+
t = _parseUnsignedNumber(i);
11301130
break;
11311131
case 'f':
11321132
_matchFalse();
@@ -1194,7 +1194,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
11941194
case '7':
11951195
case '8':
11961196
case '9':
1197-
return (_currToken = _parsePosNumber(i));
1197+
return (_currToken = _parseUnsignedNumber(i));
11981198
/*
11991199
* This check proceeds only if the Feature.ALLOW_MISSING_VALUES is enabled
12001200
* The Check is for missing values. In case of missing values in an array, the next token will be either ',' or ']'.
@@ -1373,7 +1373,7 @@ protected final JsonToken _parseFloatThatStartsWithPeriod(final boolean neg,
13731373
* @throws IOException for low-level read issues, or
13741374
* {@link JsonParseException} for decoding problems
13751375
*/
1376-
protected final JsonToken _parsePosNumber(int ch) throws IOException
1376+
protected final JsonToken _parseUnsignedNumber(int ch) throws IOException
13771377
{
13781378
/* Although we will always be complete with respect to textual
13791379
* representation (that is, all characters will be parsed),

src/main/java/com/fasterxml/jackson/core/json/UTF8DataInputJsonParser.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public JsonToken nextToken() throws IOException
680680
case '7':
681681
case '8':
682682
case '9':
683-
t = _parsePosNumber(i);
683+
t = _parseUnsignedNumber(i);
684684
break;
685685
case 'f':
686686
_matchToken("false", 1);
@@ -749,7 +749,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
749749
case '7':
750750
case '8':
751751
case '9':
752-
return (_currToken = _parsePosNumber(i));
752+
return (_currToken = _parseUnsignedNumber(i));
753753
}
754754
return (_currToken = _handleUnexpectedValue(i));
755755
}
@@ -863,7 +863,7 @@ public String nextFieldName() throws IOException
863863
case '7':
864864
case '8':
865865
case '9':
866-
t = _parsePosNumber(i);
866+
t = _parseUnsignedNumber(i);
867867
break;
868868
case 'f':
869869
_matchToken("false", 1);
@@ -1044,7 +1044,7 @@ protected final JsonToken _parseFloatThatStartsWithPeriod(final boolean neg,
10441044
* @throws IOException for low-level read issues, or
10451045
* {@link JsonParseException} for decoding problems
10461046
*/
1047-
protected JsonToken _parsePosNumber(int c) throws IOException
1047+
protected JsonToken _parseUnsignedNumber(int c) throws IOException
10481048
{
10491049
char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();
10501050
int outPtr;

src/main/java/com/fasterxml/jackson/core/json/UTF8StreamJsonParser.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ public JsonToken nextToken() throws IOException
833833
case '7':
834834
case '8':
835835
case '9':
836-
t = _parsePosNumber(i);
836+
t = _parseUnsignedNumber(i);
837837
break;
838838
case 'f':
839839
_matchFalse();
@@ -902,7 +902,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
902902
case '7':
903903
case '8':
904904
case '9':
905-
return (_currToken = _parsePosNumber(i));
905+
return (_currToken = _parseUnsignedNumber(i));
906906
}
907907
return (_currToken = _handleUnexpectedValue(i));
908908
}
@@ -1113,7 +1113,7 @@ public String nextFieldName() throws IOException
11131113
case '7':
11141114
case '8':
11151115
case '9':
1116-
t = _parsePosNumber(i);
1116+
t = _parseUnsignedNumber(i);
11171117
break;
11181118
case 'f':
11191119
_matchFalse();
@@ -1241,7 +1241,7 @@ private final void _isNextTokenNameYes(int i) throws IOException
12411241
case '7':
12421242
case '8':
12431243
case '9':
1244-
_nextToken = _parsePosNumber(i);
1244+
_nextToken = _parseUnsignedNumber(i);
12451245
return;
12461246
}
12471247
_nextToken = _handleUnexpectedValue(i);
@@ -1308,7 +1308,7 @@ private final boolean _isNextTokenNameMaybe(int i, SerializableString str) throw
13081308
case '7':
13091309
case '8':
13101310
case '9':
1311-
t = _parsePosNumber(i);
1311+
t = _parseUnsignedNumber(i);
13121312
break;
13131313
default:
13141314
t = _handleUnexpectedValue(i);
@@ -1473,7 +1473,7 @@ protected final JsonToken _parseFloatThatStartsWithPeriod(final boolean neg,
14731473
* @throws IOException for low-level read issues, or
14741474
* {@link JsonParseException} for decoding problems
14751475
*/
1476-
protected JsonToken _parsePosNumber(int c) throws IOException
1476+
protected JsonToken _parseUnsignedNumber(int c) throws IOException
14771477
{
14781478
char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();
14791479
// One special case: if first char is 0, must not be followed by a digit

0 commit comments

Comments
 (0)