Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create UnknownPropertiesTest.java #3727

Closed
wants to merge 15 commits into from
Prev Previous commit
Next Next commit
Update TokenBuffer.java
  • Loading branch information
pjfanning committed Jan 27, 2023
commit 76da9706cc3962cbc7d773edd6b13e4f146a8b4c
Original file line number Diff line number Diff line change
Expand Up @@ -1927,6 +1927,10 @@ private Number getNumberValue(final boolean preferBigNumbers) throws IOException
}
return NumberInput.parseLong(str);
} else if (value instanceof LazyNumber) {
if (preferBigNumbers && !(value instanceof LazyBigDecimal)) {
return NumberInput.parseBigDecimal(((LazyNumber) value).getText(),
isEnabled(StreamReadFeature.USE_FAST_BIG_NUMBER_PARSER));
}
return ((LazyNumber) value).getNumber();
}
if (value == null) {
Expand Down