diff --git a/ra-optimisation/search-tree-rao/src/main/java/com/powsybl/openrao/searchtreerao/result/impl/FlowResultImpl.java b/ra-optimisation/search-tree-rao/src/main/java/com/powsybl/openrao/searchtreerao/result/impl/FlowResultImpl.java index 95a0166c15..095472d723 100644 --- a/ra-optimisation/search-tree-rao/src/main/java/com/powsybl/openrao/searchtreerao/result/impl/FlowResultImpl.java +++ b/ra-optimisation/search-tree-rao/src/main/java/com/powsybl/openrao/searchtreerao/result/impl/FlowResultImpl.java @@ -18,8 +18,8 @@ import com.powsybl.openrao.searchtreerao.result.api.FlowResult; import com.powsybl.openrao.sensitivityanalysis.SystematicSensitivityResult; -import java.util.HashMap; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import static java.lang.String.format; @@ -32,8 +32,8 @@ public class FlowResultImpl implements FlowResult { private final Map> ptdfZonalSums; private final FlowResult fixedCommercialFlows; private final FlowResult fixedPtdfZonalSums; - private final Map marginMapMW = new HashMap<>(); - private final Map marginMapA = new HashMap<>(); + private final Map marginMapMW = new ConcurrentHashMap<>(); + private final Map marginMapA = new ConcurrentHashMap<>(); public FlowResultImpl(SystematicSensitivityResult systematicSensitivityResult, Map> commercialFlows,