aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--poi/src/main/java/org/apache/poi/util/BitFieldFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi/src/main/java/org/apache/poi/util/BitFieldFactory.java b/poi/src/main/java/org/apache/poi/util/BitFieldFactory.java
index 4893d5e61b..40e69cb0bd 100644
--- a/poi/src/main/java/org/apache/poi/util/BitFieldFactory.java
+++ b/poi/src/main/java/org/apache/poi/util/BitFieldFactory.java
@@ -18,13 +18,13 @@
package org.apache.poi.util;
-import java.util.*;
+import java.util.concurrent.ConcurrentHashMap;
/**
* Returns immutable Bitfield instances.
*/
public class BitFieldFactory {
- private static Map<Integer, BitField> instances = new HashMap<>();
+ private static final ConcurrentHashMap<Integer, BitField> instances = new ConcurrentHashMap<>();
public static BitField getInstance(int mask) {
return instances.computeIfAbsent(mask, k -> new BitField(mask));