This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 9cc3525 Fix flaky test due to unordered set 9cc3525 is described below commit 9cc3525382e8161805ead163eeac924058dc421f Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Sep 21 10:08:50 2019 +0200 Fix flaky test due to unordered set --- .../java/org/apache/camel/component/undertow/UndertowComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java index 47b613c..d0b7003 100644 --- a/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java +++ b/components/camel-undertow/src/main/java/org/apache/camel/component/undertow/UndertowComponent.java @@ -20,6 +20,7 @@ import java.net.URI; import java.net.URISyntaxException; import java.util.HashMap; import java.util.HashSet; +import java.util.LinkedHashSet; import java.util.Locale; import java.util.Map; import java.util.Set; @@ -59,7 +60,7 @@ import org.apache.camel.util.UnsafeUriCharactersEncoder; public class UndertowComponent extends DefaultComponent implements RestConsumerFactory, RestApiConsumerFactory, RestProducerFactory, SSLContextParametersAware { private final Map<UndertowHostKey, UndertowHost> undertowRegistry = new ConcurrentHashMap<>(); - private final Set<HttpHandlerRegistrationInfo> handlers = new HashSet<>(); + private final Set<HttpHandlerRegistrationInfo> handlers = new LinkedHashSet<>(); @Metadata(label = "advanced") private UndertowHttpBinding undertowHttpBinding;