From d3a50a33889cd522bf0f96d59f4f970d8c4d3cb2 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Thu, 15 May 2014 21:14:32 +0000 Subject: [PATCH] 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 --- src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5