You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2022/12/12 18:20:21 UTC

svn commit: r1905939 - /poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java

Author: fanningpj
Date: Mon Dec 12 18:20:21 2022
New Revision: 1905939

URL: http://svn.apache.org/viewvc?rev=1905939&view=rev
Log:
untidy hack for shared string counts that are higher than Integer.MAX_VALUE

Modified:
    poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java

Modified: poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java?rev=1905939&r1=1905938&r2=1905939&view=diff
==============================================================================
--- poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java (original)
+++ poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java Mon Dec 12 18:20:21 2022
@@ -241,9 +241,9 @@ public class ReadOnlySharedStringsTable
 
         if ("sst".equals(localName)) {
             String count = attributes.getValue("count");
-            if(count != null) this.count = Integer.parseInt(count);
+            if(count != null) this.count = (int) Long.parseLong(count);
             String uniqueCount = attributes.getValue("uniqueCount");
-            if(uniqueCount != null) this.uniqueCount = Integer.parseInt(uniqueCount);
+            if(uniqueCount != null) this.uniqueCount = (int) Long.parseLong(uniqueCount);
 
             this.strings = new ArrayList<>(this.uniqueCount);
             characters = new StringBuilder(64);



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