]> source.dussan.org Git - poi.git/commitdiff
like getTables, returns a collection that cannot be modified
authorAlain Béarez <abearez@apache.org>
Fri, 27 Mar 2020 03:13:34 +0000 (03:13 +0000)
committerAlain Béarez <abearez@apache.org>
Fri, 27 Mar 2020 03:13:34 +0000 (03:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875745 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java

index b5bb92ba32773c509d1559f991052789a19b1ebd..d9d0a19b89123f947435532d4103b477f836daaa 100644 (file)
@@ -139,7 +139,7 @@ public class XWPFTableCell implements IBody, ICell {
      * returns a list of paragraphs
      */
     public List<XWPFParagraph> getParagraphs() {
-        return paragraphs;
+        return Collections.unmodifiableList(paragraphs);
     }
 
     /**