Skip to content

Commit

Permalink
Merge pull request #417 from stleary/fix-double-ctor
Browse files Browse the repository at this point in the history
fix double ctor in JSONWriter
  • Loading branch information
stleary authored May 16, 2018
2 parents bfb3008 + a6284df commit 3c1535d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JSONWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public JSONWriter value(boolean b) throws JSONException {
* @throws JSONException If the number is not finite.
*/
public JSONWriter value(double d) throws JSONException {
return this.value(new Double(d));
return this.value(Double.valueOf(d));
}

/**
Expand Down

0 comments on commit 3c1535d

Please sign in to comment.