mirror of https://github.com/apache/poi.git
untidy hack for shared string counts that are higher than Integer.MAX_VALUE
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b4e8ba77b
commit
fdffe5f66d
|
@ -241,9 +241,9 @@ public class ReadOnlySharedStringsTable extends DefaultHandler implements Shared
|
|||
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue