Author: jheight
Date: Mon Sep 11 04:34:49 2006
New Revision: 442183

URL: http://svn.apache.org/viewvc?view=rev&rev=442183
Log:
Bug 30635: getLastCellNum return last cell num + 1. Made this clear in javadoc.

Modified:
    jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/RowRecord.java
    jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java

Modified: jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/RowRecord.java
URL: 
http://svn.apache.org/viewvc/jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/RowRecord.java?view=diff&rev=442183&r1=442182&r2=442183
==============================================================================
--- jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/RowRecord.java 
(original)
+++ jakarta/poi/trunk/src/java/org/apache/poi/hssf/record/RowRecord.java Mon 
Sep 11 04:34:49 2006
@@ -258,8 +258,8 @@
     }
 
     /**
-     * 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()

Modified: jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java
URL: 
http://svn.apache.org/viewvc/jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java?view=diff&rev=442183&r1=442182&r2=442183
==============================================================================
--- jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java 
(original)
+++ jakarta/poi/trunk/src/java/org/apache/poi/hssf/usermodel/HSSFRow.java Mon 
Sep 11 04:34:49 2006
@@ -275,7 +275,7 @@
 
     /**
      * 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 @@
     }
 
     /**
-     * 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()



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to