diff options
author | Jason Height <jheight@apache.org> | 2006-09-11 11:34:49 +0000 |
---|---|---|
committer | Jason Height <jheight@apache.org> | 2006-09-11 11:34:49 +0000 |
commit | 06564af9021757f0bbf3f8ef7831d603479b7994 (patch) | |
tree | b490e89eec586ec69ff71c65c11215f35d53e9ee /src/java/org | |
parent | 233ebaf41c8f93b0cb7c965947324ff85991f85d (diff) | |
download | poi-06564af9021757f0bbf3f8ef7831d603479b7994.tar.gz poi-06564af9021757f0bbf3f8ef7831d603479b7994.zip |
Bug 30635: getLastCellNum return last cell num + 1. Made this clear in javadoc.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@442183 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/hssf/record/RowRecord.java | 4 | ||||
-rw-r--r-- | src/java/org/apache/poi/hssf/usermodel/HSSFRow.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/java/org/apache/poi/hssf/record/RowRecord.java b/src/java/org/apache/poi/hssf/record/RowRecord.java index 29e701bc1f..fcf3f0edf4 100644 --- a/src/java/org/apache/poi/hssf/record/RowRecord.java +++ b/src/java/org/apache/poi/hssf/record/RowRecord.java @@ -258,8 +258,8 @@ public class RowRecord } /** - * get the logical col number for the last cell this row (0 based index) - * @return col - the col number + * get the logical col number for the last cell this row plus one (0 based index) + * @return col - the last col number + 1 */ public short getLastCol() diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java b/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java index ae994a2845..917ff86342 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java @@ -275,7 +275,7 @@ public class HSSFRow /** * get the number of the first cell contained in this row. - * @return short representing the first logical cell in the row + * @return short representing the first logical cell in the row, or -1 if the row does not contain any cells. */ public short getFirstCellNum() @@ -287,8 +287,8 @@ public class HSSFRow } /** - * get the number of the last cell contained in this row. - * @return short representing the last logical cell in the row + * gets the number of the last cell contained in this row <b>PLUS ONE</b>. + * @return short representing the last logical cell in the row <b>PLUS ONE</b>, or -1 if the row does not contain any cells. */ public short getLastCellNum() |