Skip to content

Commit

Permalink
Minor renaming for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jun 28, 2022
1 parent 0f31d73 commit 21c94df
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ public final JsonToken nextToken() throws IOException
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
default:
t = _handleOddValue(i);
Expand Down Expand Up @@ -1002,7 +1002,7 @@ public String nextFieldName() throws IOException
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
case 'f':
_matchFalse();
Expand Down Expand Up @@ -1081,7 +1081,7 @@ private final void _isNextTokenNameYes(int i) throws IOException
case '7':
case '8':
case '9':
_nextToken = _parsePosNumber(i);
_nextToken = _parseUnsignedNumber(i);
return;
}
_nextToken = _handleOddValue(i);
Expand Down Expand Up @@ -1126,7 +1126,7 @@ protected boolean _isNextTokenNameMaybe(int i, String nameToMatch) throws IOExce
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
case 'f':
_matchFalse();
Expand Down Expand Up @@ -1194,7 +1194,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
case '7':
case '8':
case '9':
return (_currToken = _parsePosNumber(i));
return (_currToken = _parseUnsignedNumber(i));
/*
* This check proceeds only if the Feature.ALLOW_MISSING_VALUES is enabled
* The Check is for missing values. In case of missing values in an array, the next token will be either ',' or ']'.
Expand Down Expand Up @@ -1373,7 +1373,7 @@ protected final JsonToken _parseFloatThatStartsWithPeriod(final boolean neg,
* @throws IOException for low-level read issues, or
* {@link JsonParseException} for decoding problems
*/
protected final JsonToken _parsePosNumber(int ch) throws IOException
protected final JsonToken _parseUnsignedNumber(int ch) throws IOException
{
/* Although we will always be complete with respect to textual
* representation (that is, all characters will be parsed),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public JsonToken nextToken() throws IOException
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
case 'f':
_matchToken("false", 1);
Expand Down Expand Up @@ -749,7 +749,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
case '7':
case '8':
case '9':
return (_currToken = _parsePosNumber(i));
return (_currToken = _parseUnsignedNumber(i));
}
return (_currToken = _handleUnexpectedValue(i));
}
Expand Down Expand Up @@ -863,7 +863,7 @@ public String nextFieldName() throws IOException
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
case 'f':
_matchToken("false", 1);
Expand Down Expand Up @@ -1044,7 +1044,7 @@ protected final JsonToken _parseFloatThatStartsWithPeriod(final boolean neg,
* @throws IOException for low-level read issues, or
* {@link JsonParseException} for decoding problems
*/
protected JsonToken _parsePosNumber(int c) throws IOException
protected JsonToken _parseUnsignedNumber(int c) throws IOException
{
char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();
int outPtr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ public JsonToken nextToken() throws IOException
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
case 'f':
_matchFalse();
Expand Down Expand Up @@ -902,7 +902,7 @@ private final JsonToken _nextTokenNotInObject(int i) throws IOException
case '7':
case '8':
case '9':
return (_currToken = _parsePosNumber(i));
return (_currToken = _parseUnsignedNumber(i));
}
return (_currToken = _handleUnexpectedValue(i));
}
Expand Down Expand Up @@ -1113,7 +1113,7 @@ public String nextFieldName() throws IOException
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
case 'f':
_matchFalse();
Expand Down Expand Up @@ -1241,7 +1241,7 @@ private final void _isNextTokenNameYes(int i) throws IOException
case '7':
case '8':
case '9':
_nextToken = _parsePosNumber(i);
_nextToken = _parseUnsignedNumber(i);
return;
}
_nextToken = _handleUnexpectedValue(i);
Expand Down Expand Up @@ -1308,7 +1308,7 @@ private final boolean _isNextTokenNameMaybe(int i, SerializableString str) throw
case '7':
case '8':
case '9':
t = _parsePosNumber(i);
t = _parseUnsignedNumber(i);
break;
default:
t = _handleUnexpectedValue(i);
Expand Down Expand Up @@ -1473,7 +1473,7 @@ protected final JsonToken _parseFloatThatStartsWithPeriod(final boolean neg,
* @throws IOException for low-level read issues, or
* {@link JsonParseException} for decoding problems
*/
protected JsonToken _parsePosNumber(int c) throws IOException
protected JsonToken _parseUnsignedNumber(int c) throws IOException
{
char[] outBuf = _textBuffer.emptyAndGetCurrentSegment();
// One special case: if first char is 0, must not be followed by a digit
Expand Down

0 comments on commit 21c94df

Please sign in to comment.