Skip to content

Commit

Permalink
fix build errors in jdk 11 (#17177)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Nov 24, 2023
1 parent 7c551e6 commit 4c6dbfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ public void testGetServerURLWithVariables() {

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) {
Expand Down

0 comments on commit 4c6dbfe

Please sign in to comment.