src/share/classes/java/lang/Double.java

Print this page

        

@@ -627,11 +627,11 @@
      *
      * @return  a {@code String} representation of this object.
      * @see java.lang.Double#toString(double)
      */
     public String toString() {
-        return String.valueOf(value);
+        return toString(value);
     }
 
     /**
      * Returns the value of this {@code Double} as a {@code byte} (by
      * casting to a {@code byte}).