aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ss/usermodel/charts
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-09-18 16:31:55 +0000
committerPJ Fanning <fanningpj@apache.org>2017-09-18 16:31:55 +0000
commit38650a6d2fc2fea011c0f19a26d62a158b865f59 (patch)
treec0a8c6094c3a67edf50b176963d109d9a0df7eb2 /src/java/org/apache/poi/ss/usermodel/charts
parent044382106b73380327af6d6c8a14850ba57b3228 (diff)
downloadpoi-38650a6d2fc2fea011c0f19a26d62a158b865f59.tar.gz
poi-38650a6d2fc2fea011c0f19a26d62a158b865f59.zip
use non-deprecated versions of getCellType
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808741 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ss/usermodel/charts')
-rw-r--r--src/java/org/apache/poi/ss/usermodel/charts/DataSources.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/ss/usermodel/charts/DataSources.java b/src/java/org/apache/poi/ss/usermodel/charts/DataSources.java
index a0d293c78b..bca76a3762 100644
--- a/src/java/org/apache/poi/ss/usermodel/charts/DataSources.java
+++ b/src/java/org/apache/poi/ss/usermodel/charts/DataSources.java
@@ -42,7 +42,7 @@ public class DataSources {
return new AbstractCellRangeDataSource<Number>(sheet, cellRangeAddress) {
public Number getPointAt(int index) {
CellValue cellValue = getCellValueAt(index);
- if (cellValue != null && cellValue.getCellTypeEnum() == CellType.NUMERIC) {
+ if (cellValue != null && cellValue.getCellType() == CellType.NUMERIC) {
return Double.valueOf(cellValue.getNumberValue());
} else {
return null;
@@ -59,7 +59,7 @@ public class DataSources {
return new AbstractCellRangeDataSource<String>(sheet, cellRangeAddress) {
public String getPointAt(int index) {
CellValue cellValue = getCellValueAt(index);
- if (cellValue != null && cellValue.getCellTypeEnum() == CellType.STRING) {
+ if (cellValue != null && cellValue.getCellType() == CellType.STRING) {
return cellValue.getStringValue();
} else {
return null;