Skip to content

Commit

Permalink
GH-442 Change default nativeMap of BiHashMap to ConcurrentHashMap (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
OOP-778 authored Oct 10, 2024
1 parent 723a091 commit e4e9cac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BiFunction;

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

public BiHashMap(int initialCapacity) {
this.nativeMap = new HashMap<>(initialCapacity);
this.nativeMap = new ConcurrentHashMap<>(initialCapacity);
}

@Override
Expand Down

0 comments on commit e4e9cac

Please sign in to comment.