Author: onealj
Date: Sun Nov 12 01:34:52 2017
New Revision: 1814999
URL: http://svn.apache.org/viewvc?rev=1814999&view=rev
Log:
XWPFTable#getRows() should return an unmodifiable list unless the method can
correctly update xmlbeans in response to modifying the list
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java?rev=1814999&r1=1814998&r2=1814999&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java Sun
Nov 12 01:34:52 2017
@@ -21,6 +21,7 @@ import java.util.ArrayList;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.List;
+import java.util.Collections;
import org.apache.poi.POIXMLDocumentPart;
import org.apache.poi.util.Internal;
@@ -589,7 +590,7 @@ public class XWPFTable implements IBodyE
}
public List<XWPFTableRow> getRows() {
- return tableRows;
+ return Collections.unmodifiableList(tableRows);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]