diff --git a/apis/api-mal/src/main/java/org/ccsds/moims/mo/mal/MALElementsRegistry.java b/apis/api-mal/src/main/java/org/ccsds/moims/mo/mal/MALElementsRegistry.java index 75a5b4a7b..327bda95d 100644 --- a/apis/api-mal/src/main/java/org/ccsds/moims/mo/mal/MALElementsRegistry.java +++ b/apis/api-mal/src/main/java/org/ccsds/moims/mo/mal/MALElementsRegistry.java @@ -42,7 +42,7 @@ public class MALElementsRegistry { * @param absoluteSFP The absolute short form part. * @param callable The method with the generation of the Element. */ - public synchronized void addCallableElement(Long absoluteSFP, Callable callable) { + public void addCallableElement(Long absoluteSFP, Callable callable) { ELEMENTS.put(absoluteSFP, callable); } @@ -149,7 +149,7 @@ public static Element elementListToElement(ElementList obj) throws NotFoundExcep } } - public void registerElementsForArea(MALArea malArea) { + public synchronized void registerElementsForArea(MALArea malArea) { Element[] elements = malArea.getElements(); for (Element element : elements) { @@ -157,7 +157,7 @@ public void registerElementsForArea(MALArea malArea) { } } - public void registerElementsForService(MALService malService) { + public synchronized void registerElementsForService(MALService malService) { Element[] elements = malService.getElements(); for (Element element : elements) {