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 1938207e59
commit 4cf3b2bee2
1 changed files with 2 additions and 1 deletions

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);
}
/**