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: [email protected]
For additional commands, e-mail: [email protected]