mirror of https://github.com/apache/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
This commit is contained in:
parent
5eacb4c2f7
commit
d3a50a3388
|
@ -806,7 +806,7 @@ public final class XSSFCell implements Cell {
|
||||||
DateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
|
DateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy");
|
||||||
return sdf.format(getDateCellValue());
|
return sdf.format(getDateCellValue());
|
||||||
}
|
}
|
||||||
return getNumericCellValue() + "";
|
return Double.toString(getNumericCellValue());
|
||||||
case CELL_TYPE_STRING:
|
case CELL_TYPE_STRING:
|
||||||
return getRichStringCellValue().toString();
|
return getRichStringCellValue().toString();
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue