aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/ddf
diff options
context:
space:
mode:
authorTim Allison <tallison@apache.org>2020-01-07 15:45:07 +0000
committerTim Allison <tallison@apache.org>2020-01-07 15:45:07 +0000
commite875bd81435bc7627e4eab9a18490583d2cee604 (patch)
tree20758df22e37ea06f7076fb0d4695a750bc90d83 /src/java/org/apache/poi/ddf
parentfb8f17190064f39f8f35700aa6ba1fbc2cfd88e1 (diff)
downloadpoi-e875bd81435bc7627e4eab9a18490583d2cee604.tar.gz
poi-e875bd81435bc7627e4eab9a18490583d2cee604.zip
BUG 64015 -- swap out java.util.BitSet for zaxxer's SparseBitSet
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872445 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi/ddf')
-rw-r--r--src/java/org/apache/poi/ddf/EscherDggRecord.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/poi/ddf/EscherDggRecord.java b/src/java/org/apache/poi/ddf/EscherDggRecord.java
index f1e3cc75cc..b4705ad383 100644
--- a/src/java/org/apache/poi/ddf/EscherDggRecord.java
+++ b/src/java/org/apache/poi/ddf/EscherDggRecord.java
@@ -19,11 +19,11 @@ package org.apache.poi.ddf;
import java.util.ArrayList;
import java.util.Arrays;
-import java.util.BitSet;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
+import com.zaxxer.sparsebits.SparseBitSet;
import org.apache.poi.common.usermodel.GenericRecord;
import org.apache.poi.util.GenericRecordUtil;
import org.apache.poi.util.LittleEndian;
@@ -301,7 +301,7 @@ public final class EscherDggRecord extends EscherRecord {
* @return the next available drawing group id
*/
public short findNewDrawingGroupId() {
- BitSet bs = new BitSet();
+ SparseBitSet bs = new SparseBitSet();
bs.set(0);
for (FileIdCluster fic : field_5_fileIdClusters) {
bs.set(fic.getDrawingGroupId());