fix build errors in jdk 11 (#17177)

This commit is contained in:
William Cheng 2023-11-24 17:40:13 +08:00 committed by GitHub
parent 7c551e65dd
commit 4c6dbfe7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {