]> source.dussan.org Git - poi.git/commitdiff
Make MissingCellPolicy javadocs even more explicit about iterators, as people seem...
authorNick Burch <nick@apache.org>
Mon, 15 Sep 2008 20:58:30 +0000 (20:58 +0000)
committerNick Burch <nick@apache.org>
Mon, 15 Sep 2008 20:58:30 +0000 (20:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@695621 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFRow.java
src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java

index 7e4cf715fd2c8bf01875a115ab8b16eccf85e599..a11410a3779a4211eb55d64b7e8543b7990b1e91 100644 (file)
@@ -545,6 +545,8 @@ public final class HSSFRow implements Comparable {
      * Note that the 4th element might well not be cell 4, as the iterator
      *  will not return un-defined (null) cells.
      * Call getCellNum() on the returned cells to know which cell they are.
+     * As this only ever works on physically defined cells, 
+     *  the {@link MissingCellPolicy} has no effect.
      */
     public Iterator cellIterator()
     {
index e751d9b38a690af042633c4975359640b17b23cb..e71c8e544323f8548f6af62475b6cf219ccf552d 100644 (file)
@@ -382,7 +382,10 @@ public class HSSFWorkbook extends POIDocument
      *  getting missing or blank cells from a row.
      * This will then apply to all calls to
      *  {@link HSSFRow.getCell()}. See
-     *  {@link MissingCellPolicy}
+     *  {@link MissingCellPolicy}.
+     * Note that this has no effect on any
+     *  iterators, only on when fetching Cells
+     *  by their column index.
      */
     public void setMissingCellPolicy(MissingCellPolicy missingCellPolicy) {
         this.missingCellPolicy = missingCellPolicy;