JDK 8 code review request for 6964528: Double.toHexString(double d) String manipulation with + in an append of StringBuilder (original) (raw)

Joe Darcy joe.darcy at oracle.com
Fri Feb 1 21:39:40 UTC 2013


Hello,

Please review a simple refactoring fix in Double.toHexString

 6964528: Double.toHexString(double d) String manipulation with + in 

an append of StringBuilder http://cr.openjdk.java.net/~darcy/6964528.0/

Patch below.

Thanks,

-Joe

--- old/src/share/classes/java/lang/Double.java 2013-02-01 13:36:33.000000000 -0800 +++ new/src/share/classes/java/lang/Double.java 2013-02-01 13:36:33.000000000 -0800 @@ -1,5 +1,5 @@ /*

info @@ -300,8 +300,7 @@

          if(d == 0.0) {
              answer.append("0.0p0");

@@ -324,13 +323,14 @@ "0": signif.replaceFirst("0{1,12}$", ""));



More information about the core-libs-dev mailing list