@@ -531,7 +531,7 @@ public void set(String key, Object js) {
531531 * @param async True if you want this call to be asynchronous.
532532 */
533533 public void setInt (String key , int value , boolean async ) {
534- set (key , new Double (value ), async );
534+ set (key , Double . valueOf (value ), async );
535535 }
536536
537537 /**
@@ -552,7 +552,7 @@ public void setInt(String key, int value) {
552552 * @param async True if you want this call to be asynchronous.
553553 */
554554 public void setDouble (String key , double value , boolean async ) {
555- set (key , new Double (value ), async );
555+ set (key , Double . valueOf (value ), async );
556556 }
557557
558558 /**
@@ -615,7 +615,7 @@ public void set(int index, Object js) {
615615 * @param async True to make this call asynchronous.
616616 */
617617 public void setInt (int index , int value , boolean async ) {
618- set (index , new Double (value ), async );
618+ set (index , Double . valueOf (value ), async );
619619 }
620620
621621 /**
@@ -636,7 +636,7 @@ public void setInt(int index, int value) {
636636 * @param async True to make this call asynchronous.
637637 */
638638 public void setDouble (int index , double value , boolean async ) {
639- set (index , new Double (value ), async );
639+ set (index , Double . valueOf (value ), async );
640640 }
641641
642642 /**
0 commit comments