We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a99ff52 commit 3f2dd65Copy full SHA for 3f2dd65
yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLParser.java
@@ -743,12 +743,12 @@ protected void _parseNumericValue(int expType) throws IOException
743
{
744
// Int or float?
745
if (_currToken == JsonToken.VALUE_NUMBER_INT) {
746
- int len = _textValue.length();
+ int len = _cleanedTextValue.length();
747
if (_numberNegative) {
748
len--;
749
}
750
if (len <= 9) { // definitely fits in int
751
- _numberInt = Integer.parseInt(_textValue);
+ _numberInt = Integer.parseInt(_cleanedTextValue);
752
_numTypesValid = NR_INT;
753
return;
754
0 commit comments