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
|