diff --git a/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMDetector.java b/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMDetector.java index dd972466..052c1f3e 100644 --- a/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMDetector.java +++ b/bundles/org.palladiosimulator.retriever.extraction/src/org/palladiosimulator/retriever/extraction/engine/PCMDetector.java @@ -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; @@ -41,8 +41,8 @@ public class PCMDetector { private static final Logger LOG = Logger.getLogger(PCMDetector.class); - private final Map components = new HashMap<>(); - private final Map composites = new HashMap<>(); + private final Map components = new ConcurrentHashMap<>(); + private final Map composites = new ConcurrentHashMap<>(); private final ProvisionsBuilder compositeProvisions = new ProvisionsBuilder(); private final RequirementsBuilder compositeRequirements = new RequirementsBuilder(); private final Set providedInterfaces = new HashSet<>();