]> source.dussan.org Git - poi.git/commit
Bug 63657: Rework the for bug #62130 to not use up twice as much memory when writing...
authorDominik Stadler <centic@apache.org>
Mon, 12 Aug 2019 16:42:46 +0000 (16:42 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 12 Aug 2019 16:42:46 +0000 (16:42 +0000)
commit0619e7ebfbc2035d8b2e4c28dabcb83ba96ba8d4
treeac8d6e2ca9c91038dfb218985052227f640fac25
parent958f72caaea9a06ce60dddecfe3af6d611be0b63
Bug 63657: Rework the for bug #62130 to not use up twice as much memory when writing documents.

Unfortunately XMLBeans is very tricky to use here, mainly the fact that setCArray does not replace the internal objects, but copies the content into the currently held objects makes it rather hard to do this right.

Therefore we now try to keep the existing objects and only replace the content as required to
have a stable ordering of cells in the row-XML structure.

This also fixes removing cells from rows to avoid invalid situations and
correctly free CTCellImpl instances.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1864977 13f79535-47bb-0310-9956-ffa450edef68
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFRow.java