@@ -82,7 +82,7 @@ as the following example shows:
8282 .build("Westin", "123")
8383----
8484
85- You shorter it further still with a full URI template, as the following example shows:
85+ You can shorten it further still with a full URI template, as the following example shows:
8686
8787[source,java,indent=0,subs="verbatim,quotes",role="primary"]
8888.Java
@@ -94,7 +94,7 @@ You shorter it further still with a full URI template, as the following example
9494[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
9595.Kotlin
9696----
97- val uri = UriComponentsBuilder
97+ val uri = UriComponentsBuilder
9898 .fromUriString("https://example.com/hotels/{hotel}?q={q}")
9999 .build("Westin", "123")
100100----
@@ -250,7 +250,7 @@ as the following example shows:
250250----
251251 URI uri = UriComponentsBuilder.fromPath("/hotel list/{city}")
252252 .queryParam("q", "{q}")
253- .build("New York", "foo+bar")
253+ .build("New York", "foo+bar");
254254----
255255[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
256256.Kotlin
@@ -265,13 +265,13 @@ You can shorten it further still with a full URI template, as the following exam
265265[source,java,indent=0,subs="verbatim,quotes",role="primary"]
266266.Java
267267----
268- URI uri = UriComponentsBuilder.fromPath ("/hotel list/{city}?q={q}")
269- .build("New York", "foo+bar")
268+ URI uri = UriComponentsBuilder.fromUriString ("/hotel list/{city}?q={q}")
269+ .build("New York", "foo+bar");
270270----
271271[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
272272.Kotlin
273273----
274- val uri = UriComponentsBuilder.fromPath ("/hotel list/{city}?q={q}")
274+ val uri = UriComponentsBuilder.fromUriString ("/hotel list/{city}?q={q}")
275275 .build("New York", "foo+bar")
276276----
277277
0 commit comments