You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2014/05/15 23:14:32 UTC

svn commit: r1595047 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java

Author: centic
Date: Thu May 15 21:14:32 2014
New Revision: 1595047

URL: http://svn.apache.org/r1595047
Log:
Avoid unnecessary string creation/concatination for numeric conversion, use Double.toString() instead

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java?rev=1595047&r1=1595046&r2=1595047&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java Thu May 15 21:14:32 2014
@@ -806,7 +806,7 @@ public final class XSSFCell implements C
                     DateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
                     return sdf.format(getDateCellValue());
                 }
-                return getNumericCellValue() + "";
+                return Double.toString(getNumericCellValue());
             case CELL_TYPE_STRING:
                 return getRichStringCellValue().toString();
             default:



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org