From 4c6dbfe7d66229a747ec9a95877235a5c354da89 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Fri, 24 Nov 2023 17:40:13 +0800 Subject: [PATCH] fix build errors in jdk 11 (#17177) --- .../java/org/openapitools/codegen/utils/URLPathUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java index f4fa3d68f6d..4242b346407 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/utils/URLPathUtilsTest.java @@ -111,8 +111,8 @@ public class URLPathUtilsTest { Server s9 = new Server().url("https://{user}.example.com/{version}").variables( new ServerVariables().addServerVariable("version", new ServerVariable()._default("v1")) - .addServerVariable("user", new ServerVariable()._default("{user}"))); - Assert.assertEquals(URLPathUtils.getServerURL(s9, null).toString(), "https://{user}.example.com/v1"); + .addServerVariable("user", new ServerVariable()._default("another-user"))); + Assert.assertEquals(URLPathUtils.getServerURL(s9, null).toString(), "https://another-user.example.com/v1"); } private ServerVariables serverVariables(String... entries) {