diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-02-14 20:41:18 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-02-14 20:41:18 +0000 |
commit | 15946e831b9d362311e765382ab675dc22c39bd6 (patch) | |
tree | 021a4eab0d118979cc60a54fa645b7c4dff9d7bc /poi-ooxml | |
parent | 068cd8397064a43f5e8c0e033610cef467044463 (diff) | |
download | poi-15946e831b9d362311e765382ab675dc22c39bd6.tar.gz poi-15946e831b9d362311e765382ab675dc22c39bd6.zip |
minor perf issue
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java index 98aa883b84..7ec3020bda 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java @@ -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 { |