From 8a70e74a6bd25a95f78c923e548925a7823149fb Mon Sep 17 00:00:00 2001 From: frantuma Date: Tue, 13 Nov 2018 11:24:10 +0100 Subject: [PATCH] refs #3016 - synchronized OpenApiContextLocator --- .../io/swagger/v3/oas/integration/OpenApiContextLocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/swagger-integration/src/main/java/io/swagger/v3/oas/integration/OpenApiContextLocator.java b/modules/swagger-integration/src/main/java/io/swagger/v3/oas/integration/OpenApiContextLocator.java index dfe6c394e9..be3bcbc773 100644 --- a/modules/swagger-integration/src/main/java/io/swagger/v3/oas/integration/OpenApiContextLocator.java +++ b/modules/swagger-integration/src/main/java/io/swagger/v3/oas/integration/OpenApiContextLocator.java @@ -14,7 +14,7 @@ public class OpenApiContextLocator { private OpenApiContextLocator() { } - public static OpenApiContextLocator getInstance() { + public static synchronized OpenApiContextLocator getInstance() { if (instance == null) { instance = new OpenApiContextLocator(); }