mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Revert "JSON Tweaks "
This reverts commit 9ddf09e18741ad8ac915377408c40693707491f2.
This commit is contained in:
parent
1b27d652af
commit
294324e31b
@ -843,7 +843,7 @@ public class JSONArray implements Iterable<Object>
|
||||
*/
|
||||
public JSONArray put(double value) throws JSONException
|
||||
{
|
||||
Double d = value;
|
||||
Double d = new Double(value);
|
||||
JSONObject.testValidity(d);
|
||||
this.put(d);
|
||||
return this;
|
||||
@ -858,7 +858,7 @@ public class JSONArray implements Iterable<Object>
|
||||
*/
|
||||
public JSONArray put(int value)
|
||||
{
|
||||
this.put(value);
|
||||
this.put(new Integer(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -871,7 +871,7 @@ public class JSONArray implements Iterable<Object>
|
||||
*/
|
||||
public JSONArray put(long value)
|
||||
{
|
||||
this.put(value);
|
||||
this.put(new Long(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -956,7 +956,7 @@ public class JSONArray implements Iterable<Object>
|
||||
*/
|
||||
public JSONArray put(int index, double value) throws JSONException
|
||||
{
|
||||
this.put(index, value);
|
||||
this.put(index, new Double(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -975,7 +975,7 @@ public class JSONArray implements Iterable<Object>
|
||||
*/
|
||||
public JSONArray put(int index, int value) throws JSONException
|
||||
{
|
||||
this.put(index, value);
|
||||
this.put(index, new Integer(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -994,7 +994,7 @@ public class JSONArray implements Iterable<Object>
|
||||
*/
|
||||
public JSONArray put(int index, long value) throws JSONException
|
||||
{
|
||||
this.put(index, value);
|
||||
this.put(index, new Long(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -1352,7 +1352,7 @@ public class JSONObject
|
||||
*/
|
||||
public JSONObject put(String key, double value) throws JSONException
|
||||
{
|
||||
this.put(key, value);
|
||||
this.put(key, new Double(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user