From dcd1b6db1b6b9bf30d3a4677ca579b5395ef4161 Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Thu, 26 Sep 2024 16:02:06 -0300 Subject: [PATCH] fix: use List of custom controls instead of Set to preserve order --- .../com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java index 07c13f6..a7517da 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java +++ b/src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java @@ -42,9 +42,9 @@ import elemental.json.JsonArray; import elemental.json.JsonObject; import elemental.json.JsonValue; -import java.util.HashSet; +import java.util.ArrayList; +import java.util.ArrayList; import java.util.List; -import java.util.Set; import java.util.concurrent.CompletableFuture; import org.apache.commons.lang3.StringUtils; @@ -58,7 +58,7 @@ public class GoogleMap extends Component implements HasSize { private Integer trackLocationId = null; - private Set customControls = new HashSet(); + private List customControls = new ArrayList(); /** Base map types supported by Google Maps. */ public enum MapType {