9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 11:09:06 +00:00

JSON Tweaks

This commit is contained in:
Daniel Mills
2021-07-03 01:49:55 -04:00
parent 73e975cfa1
commit 9ddf09e187
2 changed files with 7 additions and 7 deletions

View File

@@ -843,7 +843,7 @@ public class JSONArray implements Iterable<Object>
*/
public JSONArray put(double value) throws JSONException
{
Double d = new Double(value);
Double d = 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(new Integer(value));
this.put(value);
return this;
}
@@ -871,7 +871,7 @@ public class JSONArray implements Iterable<Object>
*/
public JSONArray put(long value)
{
this.put(new Long(value));
this.put(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, new Double(value));
this.put(index, 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, new Integer(value));
this.put(index, 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, new Long(value));
this.put(index, value);
return this;
}

View File

@@ -1352,7 +1352,7 @@ public class JSONObject
*/
public JSONObject put(String key, double value) throws JSONException
{
this.put(key, new Double(value));
this.put(key, value);
return this;
}