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 48b25cba370d4da63eb8cec872ca8db6ca34a74c
Original file line number Diff line number Diff line change
Expand Up @@ -1761,11 +1761,11 @@ public String getText()
switch (_currToken) {
case VALUE_NUMBER_INT:
case VALUE_NUMBER_FLOAT:
Object obj = _currentObject();
final Object obj = _currentObject();
if (obj instanceof LazyNumber) {
return ((LazyNumber) obj).getText();
}
return ClassUtil.nullOrToString(_currentObject());
return ClassUtil.nullOrToString(obj);
default:
return _currToken.asString();
}
Expand Down