XWPFTable#getRows() should return an unmodifiable list unless the method can correctly update xmlbeans in response to modifying the list

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1814999 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-11-12 01:34:52 +00:00
parent fd29e87402
commit 1bc1bdb58b

View File

@ -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 IBodyElement, ISDTContents {
}
public List<XWPFTableRow> getRows() {
return tableRows;
return Collections.unmodifiableList(tableRows);
}
/**