diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java index 3af73134a..0013580e4 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java @@ -1115,8 +1115,7 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook { } /** - * - * xssfSheetIterator was added to make transitioning to the new Iterator iterator() + * xssfSheetIterator was added to make transitioning to the new Iterator iterator() * interface less painful for projects currently using POI. * * If your code was written using a for-each loop: @@ -1129,9 +1128,9 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook { * There are two ways to upgrade your code: * // Option A: *

-     *      for (XSSFSheet sh : (Iterable) (Iterable) wb) {
-     *          sh.createRow(0);
-     *      }
+     *  for (XSSFSheet sh : (Iterable) (Iterable) wb) {
+     *      sh.createRow(0);
+     *  }
      *  
* * // Option B (preferred for new code): @@ -1160,7 +1159,7 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook { * * // Option B: *

-     *  @SuppressWarnings("deprecation")
+     *  @SuppressWarnings("deprecation")
      *  Iterator it = wb.xssfSheetIterator();
      *  XSSFSheet sh = it.next();
      *  sh.createRow(0);