Commit 52203093 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

Editor Bindings: protect the internal map against modifications

Issue-Ref: 3883
Issue-Url: https://af3-developer.fortiss.org/issues/3883

Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent cd4f8f16
......@@ -5,7 +5,7 @@ ConstraintUIService.java 433e35bb1c9bbc628c6ee070ff45632400becf4a GREEN
ContextMenuService.java ca3c899293f25b70ce8e5f0d86ca2f9683329d81 GREEN
EditPartFactoryService.java e9180c0020f1769d9e24ef3c08f9ca5599dbc5c3 GREEN
MarkerService.java b01b7706034691683df7bbc2e7828c42574b3147 GREEN
ModelEditorBindingService.java 788b8b898c7ad4118321aefca47e7623eac2b3e2 GREEN
ModelEditorBindingService.java 3de291c87e2183ee2943e1c1d26f4bf78ce77a65 YELLOW
ModelElementHandlerService.java 07a30545ad687ff0fe13bf7a9348c41fb03e0b2c GREEN
NavigatorService.java 2b1361eac805996e22e5409dafff9707fbac3376 GREEN
ToolingKernelUIInternal.java 38903445a9084b7908716a00f41621dfb3126fca GREEN
......
......@@ -20,6 +20,7 @@ import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.getParent
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.isChildElementOf;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.error;
import java.util.ArrayList;
import java.util.EventObject;
import java.util.HashMap;
import java.util.List;
......@@ -174,7 +175,7 @@ public class ModelEditorBindingService extends EObjectAwareServiceBase<IModelEdi
if(bindings == null) {
bindings = emptyList();
}
return bindings;
return new ArrayList<>(bindings);
}
/** {@inheritDoc} */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment