diff --git a/vertx-web-openapi/src/main/java/io/vertx/ext/web/openapi/impl/OpenAPIHolderImpl.java b/vertx-web-openapi/src/main/java/io/vertx/ext/web/openapi/impl/OpenAPIHolderImpl.java index b9bdcc4f37..7a6ffe9a8b 100755 --- a/vertx-web-openapi/src/main/java/io/vertx/ext/web/openapi/impl/OpenAPIHolderImpl.java +++ b/vertx-web-openapi/src/main/java/io/vertx/ext/web/openapi/impl/OpenAPIHolderImpl.java @@ -33,6 +33,7 @@ import java.nio.file.Paths; import java.util.*; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentSkipListMap; import java.util.stream.Collectors; public class OpenAPIHolderImpl implements OpenAPIHolder { @@ -52,7 +53,7 @@ public class OpenAPIHolderImpl implements OpenAPIHolder { public OpenAPIHolderImpl(Vertx vertx, HttpClient client, FileSystem fs, OpenAPILoaderOptions options) { this.vertx = vertx; absolutePaths = new ConcurrentHashMap<>(); - externalSolvingRefs = new ConcurrentHashMap<>(); + externalSolvingRefs = new ConcurrentSkipListMap<>();; this.client = client; this.fs = fs; this.options = options;