Author: fanningpj
Date: Mon Feb 14 20:41:18 2022
New Revision: 1898091
URL: http://svn.apache.org/viewvc?rev=1898091&view=rev
Log:
minor perf issue
Modified:
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
Modified:
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java?rev=1898091&r1=1898090&r2=1898091&view=diff
==============================================================================
---
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
(original)
+++
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
Mon Feb 14 20:41:18 2022
@@ -297,7 +297,8 @@ public final class XSSFCell extends Cell
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 Cell
} 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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]