Skip to content

Commit

Permalink
Merge pull request #51 from PalladioSimulator/fix_concurrency
Browse files Browse the repository at this point in the history
Fix concurrency issues in PcmDetector
  • Loading branch information
dr6817 authored Jan 15, 2024
2 parents b48303e + 3df2338 commit 0c6dff8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;

import org.apache.log4j.Logger;
Expand Down Expand Up @@ -41,8 +41,8 @@
public class PCMDetector {
private static final Logger LOG = Logger.getLogger(PCMDetector.class);

private final Map<CompUnitOrName, ComponentBuilder> components = new HashMap<>();
private final Map<String, CompositeBuilder> composites = new HashMap<>();
private final Map<CompUnitOrName, ComponentBuilder> components = new ConcurrentHashMap<>();
private final Map<String, CompositeBuilder> composites = new ConcurrentHashMap<>();
private final ProvisionsBuilder compositeProvisions = new ProvisionsBuilder();
private final RequirementsBuilder compositeRequirements = new RequirementsBuilder();
private final Set<OperationInterface> providedInterfaces = new HashSet<>();
Expand Down

0 comments on commit 0c6dff8

Please sign in to comment.