From dacbf4cb34d3b2cf0747daa16903c91d696655a4 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Tue, 1 Dec 2015 16:09:05 -0500 Subject: [PATCH] Update Javadoc on UriComponentsBuilder.query --- .../org/springframework/web/util/UriComponentsBuilder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java b/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java index e7378cd6643..31c0162e100 100644 --- a/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java +++ b/spring-web/src/main/java/org/springframework/web/util/UriComponentsBuilder.java @@ -605,8 +605,9 @@ public class UriComponentsBuilder implements Cloneable { * be parsed unambiguously. Such values should be substituted for URI * variables to enable correct parsing: *
-	 * String uriString = "/hotels/42?filter={value}";
-	 * UriComponentsBuilder.fromUriString(uriString).buildAndExpand("hot&cold");
+	 * UriComponentsBuilder.fromUriString("/hotels/42")
+	 * 	.query("filter={value}")
+	 * 	.buildAndExpand("hot&cold");
 	 * 
* @param query the query string * @return this UriComponentsBuilder