浏览代码

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
tags/REL_3_11_BETA1
Dominik Stadler 10 年前
父节点
当前提交
d3a50a3388
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java

+ 1
- 1
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:

正在加载...
取消
保存