From: Alain BĂ©arez Date: Fri, 27 Mar 2020 03:13:34 +0000 (+0000) Subject: like getTables, returns a collection that cannot be modified X-Git-Tag: before_ooxml_3rd_edition~357 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e6a638ca0c126564e40ab3ff5e4e7b0c6254fce;p=poi.git like getTables, returns a collection that cannot be modified git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875745 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java index b5bb92ba32..d9d0a19b89 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java @@ -139,7 +139,7 @@ public class XWPFTableCell implements IBody, ICell { * returns a list of paragraphs */ public List getParagraphs() { - return paragraphs; + return Collections.unmodifiableList(paragraphs); } /**