From: Javen O'Neal Date: Mon, 4 Jul 2016 13:49:44 +0000 (+0000) Subject: bug 59790,59791: add @since javadoc annotation to FormulaType and CellType X-Git-Tag: REL_3_15_BETA3~198 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a22b230394fa996343db7af26d511fa472d9eb9f;p=poi.git bug 59790,59791: add @since javadoc annotation to FormulaType and CellType git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751287 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/ss/formula/FormulaType.java b/src/java/org/apache/poi/ss/formula/FormulaType.java index a26398b637..45d26ae885 100644 --- a/src/java/org/apache/poi/ss/formula/FormulaType.java +++ b/src/java/org/apache/poi/ss/formula/FormulaType.java @@ -57,14 +57,19 @@ public enum FormulaType { /** @deprecated POI 3.15 beta 3. */ private final int code; - /** @deprecated POI 3.15 beta 3. + /** + * @since POI 3.15 beta 3. + * @deprecated POI 3.15 beta 3. * Formula type code doesn't mean anything. Only in this class for transitioning from a class with int constants to a true enum. * Remove hard-coded numbers from the enums above. */ private FormulaType(int code) { this.code = code; } - /** @deprecated POI 3.15 beta 3. Used to transition code from ints to FormulaTypes. */ + /** + * @since POI 3.15 beta 3. + * @deprecated POI 3.15 beta 3. Used to transition code from ints to FormulaTypes. + */ public static FormulaType forInt(int code) { for (FormulaType type : values()) { if (type.code == code) { diff --git a/src/java/org/apache/poi/ss/usermodel/CellType.java b/src/java/org/apache/poi/ss/usermodel/CellType.java index d6ef7b3218..1d31b8473f 100644 --- a/src/java/org/apache/poi/ss/usermodel/CellType.java +++ b/src/java/org/apache/poi/ss/usermodel/CellType.java @@ -20,6 +20,9 @@ package org.apache.poi.ss.usermodel; import org.apache.poi.ss.formula.FormulaType; import org.apache.poi.util.Internal; +/** + * @since POI 3.15 beta 3 + */ public enum CellType { @Internal _UNINITIALIZED(-1), @@ -52,15 +55,24 @@ public enum CellType { */ ERROR(5); - /** @deprecated POI 3.15 beta 3 */ + /** + * @since POI 3.15 beta 3 + * @deprecated POI 3.15 beta 3 + */ private final int code; - /** @deprecated POI 3.15 beta 3 */ + /** + * @since POI 3.15 beta 3 + * @deprecated POI 3.15 beta 3 + */ private CellType(int code) { this.code = code; } - /** @deprecated POI 3.15 beta 3. Used to transition code from ints to CellTypes. */ + /** + * @since POI 3.15 beta 3. + * @deprecated POI 3.15 beta 3. Used to transition code from ints to CellTypes. + */ public static CellType forInt(int code) { for (CellType type : values()) { if (type.code == code) { @@ -70,7 +82,10 @@ public enum CellType { throw new IllegalArgumentException("Invalid CellType code: " + code); } - /** @deprecated POI 3.15 beta 3 */ + /** + * @since POI 3.15 beta 3 + * @deprecated POI 3.15 beta 3 + */ public int getCode() { return code; }