poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fannin...@apache.org
Subject svn commit: r1878747 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
Date Thu, 11 Jun 2020 09:20:29 GMT
Author: fanningpj
Date: Thu Jun 11 09:20:29 2020
New Revision: 1878747

URL: http://svn.apache.org/viewvc?rev=1878747&view=rev
Log:
[bug-64516] XSSFSheet.shiftRows has a bug when shifting rows affect the order of the rows.
Thanks to Alex Richter

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java?rev=1878747&r1=1878746&r2=1878747&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java Thu Jun 11 09:20:29
2020
@@ -3044,7 +3044,7 @@ public class XSSFSheet extends POIXMLDoc
             Long rownumL = ctRow.getR();
             ctRows.put(rownumL, ctRow);
         }
-        List<CTRow> ctRowList = new ArrayList<CTRow>(ctRows.values());
+        List<CTRow> ctRowList = new ArrayList<>(ctRows.values());
         CTRow[] ctRowArray = new CTRow[ctRowList.size()];
         ctRowArray = ctRowList.toArray(ctRowArray);
         sheetData.setRowArray(ctRowArray);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message