]> source.dussan.org Git - poi.git/commitdiff
return unmodifiable shared strings to guarentee parallel data structures stay in...
authorJaven O'Neal <onealj@apache.org>
Tue, 22 Mar 2016 07:04:51 +0000 (07:04 +0000)
committerJaven O'Neal <onealj@apache.org>
Tue, 22 Mar 2016 07:04:51 +0000 (07:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1736144 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java

index c641a4f77252d0353ff3438011be1f9b966cda7e..8ade04f8f91ec0dc8146d4a9f475eb9aaeb35355 100644 (file)
@@ -206,7 +206,7 @@ public class SharedStringsTable extends POIXMLDocumentPart {
      * @return array of CTRst beans
      */
     public List<CTRst> getItems() {
-        return strings;
+        return Collections.unmodifiableList(strings);
     }
 
     /**