File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/types/semtype Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424import io .ballerina .runtime .api .types .semtype .SemType ;
2525import io .ballerina .runtime .api .types .semtype .TypeAtom ;
2626
27- import java .util .HashMap ;
2827import java .util .Map ;
28+ import java .util .concurrent .ConcurrentHashMap ;
2929
3030/**
3131 * CellAtomicType node.
@@ -67,9 +67,9 @@ public enum CellMutability {
6767
6868 private static final class CellAtomCache {
6969
70- private static final Map <Integer , CellAtomicType > NONE_CACHE = new HashMap <>();
71- private static final Map <Integer , CellAtomicType > LIMITED_CACHE = new HashMap <>();
72- private static final Map <Integer , CellAtomicType > UNLIMITED_CACHE = new HashMap <>();
70+ private static final Map <Integer , CellAtomicType > NONE_CACHE = new ConcurrentHashMap <>();
71+ private static final Map <Integer , CellAtomicType > LIMITED_CACHE = new ConcurrentHashMap <>();
72+ private static final Map <Integer , CellAtomicType > UNLIMITED_CACHE = new ConcurrentHashMap <>();
7373
7474 private static CellAtomicType get (SemType semType , CellMutability mut ) {
7575 if (semType .some () != 0 ) {
You can’t perform that action at this time.
0 commit comments