pjfanning commented on code in PR #528:
URL: https://github.com/apache/poi/pull/528#discussion_r1350194065


##########
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java:
##########
@@ -1240,11 +1247,11 @@ public void setColumnGroupCollapsed(int columnNumber, 
boolean collapsed) {
      */
     @Override
     public void groupColumn(int fromColumn, int toColumn) {
-        _sh.groupColumn(fromColumn, toColumn);
+        _sh.groupColumn(fromColumn,toColumn);
     }
 
     /**
-     * Ungroup a range of columns that were previously grouped
+     * Ungroup a range of columns that were previously groupped

Review Comment:
   another typo - please do not give us PRs where you randomly change code 
unrelated to your fix



##########
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java:
##########
@@ -1145,7 +1152,7 @@ public boolean isDisplayRowColHeadings() {
      * Breaks occur above the specified row and left of the specified column 
inclusive.
      *
      * For example, {@code sheet.setColumnBreak(2);} breaks the sheet into two 
parts
-     * with columns A,B,C in the first and D,E,... in the second. Similar, 
{@code sheet.setRowBreak(2);}
+     * with columns A,B,C in the first and D,E,... in the second. Simuilar, 
{@code sheet.setRowBreak(2);}

Review Comment:
   Can you fix the typo here?



##########
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java:
##########
@@ -1349,33 +1361,33 @@ public void ungroupRow(int fromRow, int toRow) {
      *
      * <i>Not implemented for expanding (i.e. collapse == false)</i>
      *
-     * @param row   start row of a grouped range of rows (0-based)
+     * @param row   start row of a groupped range of rows (0-based)
      * @param collapse whether to expand/collapse the detail rows
-     * @throws IllegalStateException if collapse is false as this is not 
implemented for SXSSF.
+     * @throws RuntimeException if collapse is false as this is not 
implemented for SXSSF.
      */
     @Override
     public void setRowGroupCollapsed(int row, boolean collapse) {
         if (collapse) {
             collapseRow(row);
         } else {
             //expandRow(rowIndex);
-            throw new IllegalStateException("Unable to expand row: Not 
Implemented");
+            throw new RuntimeException("Unable to expand row: Not 
Implemented");

Review Comment:
   please do not change the exception type



##########
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java:
##########
@@ -1240,11 +1247,11 @@ public void setColumnGroupCollapsed(int columnNumber, 
boolean collapsed) {
      */
     @Override
     public void groupColumn(int fromColumn, int toColumn) {
-        _sh.groupColumn(fromColumn, toColumn);

Review Comment:
   why are you reformatting this code?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to