mirror of https://github.com/apache/poi.git
minor perf issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
068cd83970
commit
15946e831b
|
@ -297,7 +297,8 @@ public final class XSSFCell extends CellBase {
|
|||
rt = new XSSFRichTextString("");
|
||||
break;
|
||||
case STRING:
|
||||
if (_cell.getT() == STCellType.INLINE_STR) {
|
||||
STCellType.Enum xmlbeanCellType = _cell.getT();
|
||||
if (xmlbeanCellType == STCellType.INLINE_STR) {
|
||||
if(_cell.isSetIs()) {
|
||||
//string is expressed directly in the cell definition instead of implementing the shared string table.
|
||||
rt = new XSSFRichTextString(_cell.getIs());
|
||||
|
@ -307,7 +308,7 @@ public final class XSSFCell extends CellBase {
|
|||
} else {
|
||||
rt = new XSSFRichTextString("");
|
||||
}
|
||||
} else if (_cell.getT() == STCellType.STR) {
|
||||
} else if (xmlbeanCellType == STCellType.STR) {
|
||||
//cached formula value
|
||||
rt = new XSSFRichTextString(_cell.isSetV() ? _cell.getV() : "");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue