Skip to content

Commit e4e9cac

Browse files
authored
GH-442 Change default nativeMap of BiHashMap to ConcurrentHashMap (#443)
1 parent 723a091 commit e4e9cac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

litecommands-core/src/dev/rollczi/litecommands/shared/BiHashMap.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.util.HashMap;
44
import java.util.Map;
5+
import java.util.concurrent.ConcurrentHashMap;
56
import java.util.function.BiFunction;
67

78
public class BiHashMap<K1, K2, V> implements BiMap<K1, K2, V> {
@@ -22,7 +23,7 @@ public BiHashMap() {
2223
}
2324

2425
public BiHashMap(int initialCapacity) {
25-
this.nativeMap = new HashMap<>(initialCapacity);
26+
this.nativeMap = new ConcurrentHashMap<>(initialCapacity);
2627
}
2728

2829
@Override

0 commit comments

Comments
 (0)