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-unsubscr...@poi.apache.org For additional commands, e-mail: commits-h...@poi.apache.org