From 6e6a638ca0c126564e40ab3ff5e4e7b0c6254fce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20B=C3=A9arez?= Date: Fri, 27 Mar 2020 03:13:34 +0000 Subject: [PATCH] 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 --- src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /** -- 2.39.5