Return-Path: X-Original-To: apmail-poi-commits-archive@minotaur.apache.org Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0CE0017A0F for ; Thu, 17 Sep 2015 11:18:22 +0000 (UTC) Received: (qmail 31228 invoked by uid 500); 17 Sep 2015 11:18:22 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 31194 invoked by uid 500); 17 Sep 2015 11:18:21 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 31185 invoked by uid 99); 17 Sep 2015 11:18:21 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2015 11:18:21 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id BDF43AC006A for ; Thu, 17 Sep 2015 11:18:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1703576 - /poi/site/publish/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html Date: Thu, 17 Sep 2015 11:18:21 -0000 To: commits@poi.apache.org From: nick@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150917111821.BDF43AC006A@hades.apache.org> 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 java.util.Iterator< - for (XSSFSheet sh : (Iterable) (Iterable) wb) { - sh.createRow(0); - } + for (XSSFSheet sh : (Iterable) (Iterable) wb) { + sh.createRow(0); + } // Option B (preferred for new code): @@ -1722,7 +1722,22 @@ public java.util.Iterator< // Option B: -

+  

+  @SuppressWarnings("deprecation")
+  Iterator it = wb.xssfSheetIterator();
+  XSSFSheet sh = it.next();
+  sh.createRow(0);
+  
+ + // Option C (preferred for new code): +

+  Iterator it = wb.iterator();
+  Sheet sh = it.next();
+  sh.createRow(0);
+  
+ + New projects should use the preferred options. Note: XSSFWorkbook.xssfSheetIterator + is deprecated and will be removed in a future version.
Returns:
an iterator of the sheets.
--------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org For additional commands, e-mail: commits-help@poi.apache.org