aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml/src/main/java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2021-09-10 06:15:13 +0000
committerDominik Stadler <centic@apache.org>2021-09-10 06:15:13 +0000
commit3e7672d8562a31c285a1ff6344491787e1aacb88 (patch)
tree581d7311e1fcd26d565c115686af1f99463d2ee7 /poi-ooxml/src/main/java
parent5f743b5c087ab9c9c62bdb61a109b71ca11af896 (diff)
downloadpoi-3e7672d8562a31c285a1ff6344491787e1aacb88.tar.gz
poi-3e7672d8562a31c285a1ff6344491787e1aacb88.zip
Adjust imports and apply some IDE suggestions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src/main/java')
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
index 04e0c0e735..7ba700682c 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
@@ -118,7 +118,7 @@ public class SXSSFSheet implements Sheet
*
* @param rownum row number
* @return high level Row object representing a row in the sheet
- * @throws IllegalArgumentException If the max. number of rows is exceeded or
+ * @throws IllegalArgumentException If the max. number of rows is exceeded or
* a rownum is provided where the row is already flushed to disk.
* @see #removeRow(Row)
*/
@@ -1877,7 +1877,7 @@ public class SXSSFSheet implements Sheet
{
Integer firstRowNum = _rows.firstKey();
if (firstRowNum!=null) {
- int rowIndex = firstRowNum.intValue();
+ int rowIndex = firstRowNum;
SXSSFRow row = _rows.get(firstRowNum);
// Update the best fit column widths for auto-sizing just before the rows are flushed
_autoSizeColumnTracker.updateColumnWidths(row);