< prev index next >

test/java/text/Format/NumberFormat/NumberRoundTrip.java

Print this page

        

@@ -128,15 +128,15 @@
         double a = Math.random();
         return (2.0 * range * a) - range;
     }
 
     public void doTest(NumberFormat fmt, double value) {
-        doTest(fmt, new Double(value));
+        doTest(fmt, Double.valueOf(value));
     }
 
     public void doTest(NumberFormat fmt, long value) {
-        doTest(fmt, new Long(value));
+        doTest(fmt, Long.valueOf(value));
     }
 
     static double proportionalError(Number a, Number b) {
         double aa = a.doubleValue(), bb = b.doubleValue();
         double error = aa - bb;
< prev index next >