From 7557a4a6a3eee68a0939fd3a299bfc9833088e19 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 2 Jul 2017 17:12:55 +0000 Subject: [PATCH] Add missing deprecations for CellType methods that return ints git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1800569 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xssf/streaming/SXSSFEvaluationCell.java | 2 ++ .../java/org/apache/poi/xssf/usermodel/XSSFEvaluationCell.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationCell.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationCell.java index 8c11e8b8b1..10d20a5f12 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFEvaluationCell.java @@ -57,6 +57,7 @@ final class SXSSFEvaluationCell implements EvaluationCell { * For forwards compatibility, do not hard-code cell type literals in your code. * * @return cell type + * @deprecated 3.17. Will return a {@link CellType} enum in the future. */ @Override public int getCellType() { @@ -101,6 +102,7 @@ final class SXSSFEvaluationCell implements EvaluationCell { * For forwards compatibility, do not hard-code cell type literals in your code. * * @return cell type of cached formula result + * @deprecated 3.17. Will return a {@link CellType} enum in the future. */ @Override public int getCachedFormulaResultType() { diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationCell.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationCell.java index 129052e79c..975eed8700 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationCell.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFEvaluationCell.java @@ -102,6 +102,7 @@ final class XSSFEvaluationCell implements EvaluationCell { * For forwards compatibility, do not hard-code cell type literals in your code. * * @return cell type of cached formula result + * @deprecated 3.17. Will return a {@link CellType} enum in the future. */ @Override public int getCachedFormulaResultType() { -- 2.39.5