]> source.dussan.org Git - poi.git/commitdiff
Avoid unnecessary string creation/concatination for numeric conversion, use Double...
authorDominik Stadler <centic@apache.org>
Thu, 15 May 2014 21:14:32 +0000 (21:14 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 15 May 2014 21:14:32 +0000 (21:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595047 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java

index 4551151a1e7215a144d953edca2f3ae47dd6afaf..47df620a583b974aa5f57e3c54c940b477a4a2d6 100644 (file)
@@ -806,7 +806,7 @@ public final class XSSFCell implements Cell {
                     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: