mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Reverted redundant cast (tests failed)
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1200412 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -198,8 +198,8 @@ class JSONReader {
|
||||
this.addDigits();
|
||||
}
|
||||
|
||||
return (this.buf.indexOf(".") >= 0) ? Double.parseDouble(this.buf.toString()) :
|
||||
Long.parseLong(this.buf.toString());
|
||||
return (this.buf.indexOf(".") >= 0) ? (Object) Double.parseDouble(this.buf.toString())
|
||||
: (Object) Long.parseLong(this.buf.toString());
|
||||
}
|
||||
|
||||
private Object string(char quote) {
|
||||
|
||||
Reference in New Issue
Block a user