poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1703576 - /poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html
Date Thu, 17 Sep 2015 11:18:21 GMT
Author: nick
Date: Thu Sep 17 11:18:21 2015
New Revision: 1703576

URL: http://svn.apache.org/r1703576
Log:
Tweak javadocs

Modified:
    poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html

Modified: poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html
URL: http://svn.apache.org/viewvc/poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html?rev=1703576&r1=1703575&r2=1703576&view=diff
==============================================================================
--- poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html (original)
+++ poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html Thu Sep 17 11:18:21
2015
@@ -1692,9 +1692,9 @@ public&nbsp;java.util.Iterator&lt;<a hre
   There are two ways to upgrade your code:
   // Option A:
   <pre><code>
-      for (XSSFSheet sh : (Iterable<XSSFSheet>) (Iterable<? extends Sheet>) wb)
{
-          sh.createRow(0);
-      }
+  for (XSSFSheet sh : (Iterable<XSSFSheet>) (Iterable<? extends Sheet>) wb) {
+      sh.createRow(0);
+  }
   </code></pre>
       
   // Option B (preferred for new code):
@@ -1722,7 +1722,22 @@ public&nbsp;java.util.Iterator&lt;<a hre
   </code></pre>
 
   // Option B:
-  <pre><code></div>
+  <pre><code>
+  &#64;SuppressWarnings("deprecation")
+  Iterator<XSSFSheet> it = wb.xssfSheetIterator();
+  XSSFSheet sh = it.next();
+  sh.createRow(0);
+  </code></pre>
+
+  // Option C (preferred for new code):
+  <pre><code>
+  Iterator<Sheet> it = wb.iterator();
+  Sheet sh = it.next();
+  sh.createRow(0);
+  </code></pre>
+  
+  New projects should use the preferred options. Note: XSSFWorkbook.xssfSheetIterator
+  is deprecated and will be removed in a future version.</div>
 <dl><dt><span class="strong">Returns:</span></dt><dd>an
iterator of the sheets.</dd></dl>
 </li>
 </ul>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message