From: Dominik Stadler Date: Thu, 15 May 2014 21:14:32 +0000 (+0000) Subject: Avoid unnecessary string creation/concatination for numeric conversion, use Double... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9efc34987215e0d83cd0eefb5e349228ad82431e;p=poi.git Avoid unnecessary string creation/concatination for numeric conversion, use Double.toString() instead git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595047 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java index 4551151a1e..47df620a58 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java @@ -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: