aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-07-04 10:15:18 +0000
committerJaven O'Neal <onealj@apache.org>2016-07-04 10:15:18 +0000
commit8d31c01f4035aaa40467d96fe1de1f88ed801cf8 (patch)
tree41f1ce223e92a49154a096a3e5f0c5d55a174975 /src/ooxml/java/org/apache/poi/xssf/usermodel/helpers
parentfb8c79d96c2f0ddffb13f5b96c0f65b66c77ce5f (diff)
downloadpoi-8d31c01f4035aaa40467d96fe1de1f88ed801cf8.tar.gz
poi-8d31c01f4035aaa40467d96fe1de1f88ed801cf8.zip
bug 59791: replace deprecated Cell.CELL_TYPE_* usage with CellType.*
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/usermodel/helpers')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/XSSFFormulaUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/XSSFFormulaUtils.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/XSSFFormulaUtils.java
index 99e8a1e408..107e205b98 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/XSSFFormulaUtils.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/helpers/XSSFFormulaUtils.java
@@ -26,6 +26,7 @@ import org.apache.poi.ss.formula.ptg.Ptg;
import org.apache.poi.ss.formula.ptg.Pxg;
import org.apache.poi.ss.formula.ptg.Pxg3D;
import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.xssf.usermodel.XSSFCell;
@@ -76,7 +77,7 @@ public final class XSSFFormulaUtils {
for (Sheet sh : _wb) {
for (Row row : sh) {
for (Cell cell : row) {
- if (cell.getCellType() == Cell.CELL_TYPE_FORMULA) {
+ if (cell.getCellType() == CellType.FORMULA) {
updateFormula((XSSFCell) cell, oldName, newName);
}
}