poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1736144 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java
Date Tue, 22 Mar 2016 07:04:51 GMT
Author: onealj
Date: Tue Mar 22 07:04:51 2016
New Revision: 1736144

URL: http://svn.apache.org/viewvc?rev=1736144&view=rev
Log:
return unmodifiable shared strings to guarentee parallel data structures stay in sync

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java?rev=1736144&r1=1736143&r2=1736144&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java Tue Mar 22
07:04:51 2016
@@ -206,7 +206,7 @@ public class SharedStringsTable extends
      * @return array of CTRst beans
      */
     public List<CTRst> getItems() {
-        return strings;
+        return Collections.unmodifiableList(strings);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message