From 6382370552a24787c4cdc1a74e3824aca3fcf72f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 18 Sep 2017 13:58:55 +0000 Subject: update getCellType to return CellType enum instead of int git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808718 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/examples') diff --git a/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java b/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java index 2393b18122..ab848d3dd6 100644 --- a/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java +++ b/src/examples/src/org/apache/poi/hssf/usermodel/examples/HSSFReadWrite.java @@ -188,7 +188,7 @@ public final class HSSFReadWrite { String value; if(cell != null) { - switch (cell.getCellTypeEnum()) { + switch (cell.getCellType()) { case FORMULA: value = "FORMULA value=" + cell.getCellFormula(); @@ -215,7 +215,7 @@ public final class HSSFReadWrite { break; default: - value = "UNKNOWN value of type " + cell.getCellTypeEnum(); + value = "UNKNOWN value of type " + cell.getCellType(); } System.out.println("CELL col=" + cell.getColumnIndex() + " VALUE=" + value); -- cgit v1.2.3