poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1595047 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java
Date Thu, 15 May 2014 21:14:32 GMT
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


Mime
View raw message