git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893211 13f79535-47bb-0310-9956-ffa450edef68tags/REL_5_2_0
@@ -28,14 +28,14 @@ import java.io.File; | |||
import java.io.FileInputStream; | |||
import java.io.IOException; | |||
import java.io.InputStream; | |||
import java.util.*; | |||
import java.util.ArrayList; | |||
import java.util.List; | |||
import java.util.Set; | |||
import java.util.stream.Stream; | |||
import org.apache.poi.hssf.record.crypto.Biff8EncryptionKey; | |||
import org.apache.tools.ant.DirectoryScanner; | |||
import org.junit.jupiter.api.function.Executable; | |||
import org.junit.jupiter.api.parallel.Execution; | |||
import org.junit.jupiter.api.parallel.ExecutionMode; | |||
import org.junit.jupiter.params.ParameterizedTest; | |||
import org.junit.jupiter.params.provider.Arguments; | |||
import org.junit.jupiter.params.provider.MethodSource; |
@@ -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); |