Fix a 1.6-ism - TreeMap.firstEntry
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1148056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce0a61f8e6
commit
2a1dc583b6
@ -1219,14 +1219,12 @@ public class SXSSFSheet implements Sheet, Cloneable
|
||||
|
||||
private void flushOneRow() throws IOException
|
||||
{
|
||||
Map.Entry<Integer,SXSSFRow> firstEntry=_rows.firstEntry();
|
||||
if(firstEntry!=null)
|
||||
{
|
||||
|
||||
SXSSFRow row=firstEntry.getValue();
|
||||
int rowIndex=firstEntry.getKey().intValue();
|
||||
Integer firstRowNum = _rows.firstKey();
|
||||
if (firstRowNum!=null) {
|
||||
int rowIndex = firstRowNum.intValue();
|
||||
SXSSFRow row = _rows.get(firstRowNum);
|
||||
_writer.writeRow(rowIndex, row);
|
||||
_rows.remove(firstEntry.getKey());
|
||||
_rows.remove(firstRowNum);
|
||||
}
|
||||
}
|
||||
public void changeRowNum(SXSSFRow row, int newRowNum)
|
||||
|
Loading…
Reference in New Issue
Block a user