Skip to content

Commit 3c1535d

Browse files
authored
Merge pull request stleary#417 from stleary/fix-double-ctor
fix double ctor in JSONWriter
2 parents bfb3008 + a6284df commit 3c1535d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JSONWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public JSONWriter value(boolean b) throws JSONException {
391391
* @throws JSONException If the number is not finite.
392392
*/
393393
public JSONWriter value(double d) throws JSONException {
394-
return this.value(new Double(d));
394+
return this.value(Double.valueOf(d));
395395
}
396396

397397
/**

0 commit comments

Comments
 (0)