diff --git a/org.springframework.web/src/main/java/org/springframework/web/util/UriBuilder.java b/org.springframework.web/src/main/java/org/springframework/web/util/UriBuilder.java index b27db5b16a..9c4d27fadd 100644 --- a/org.springframework.web/src/main/java/org/springframework/web/util/UriBuilder.java +++ b/org.springframework.web/src/main/java/org/springframework/web/util/UriBuilder.java @@ -42,16 +42,6 @@ import org.springframework.util.StringUtils; * *

Most of the URI component methods accept URI template variables (i.e. {@code "{foo}"}), which are expanded by * calling {@code build}. - * one , are allowed in most components of a URI but their value is - * restricted to a particular component. E.g. - *

UriBuilder.fromPath("{arg1}").build("foo#bar");
- * would result in encoding of the '#' such that the resulting URI is - * "foo%23bar". To create a URI "foo#bar" use - *
UriBuilder.fromPath("{arg1}").fragment("{arg2}").build("foo", "bar")
- * instead. URI template names and delimiters are never encoded but their - * values are encoded when a URI is built. - * Template parameter regular expressions are ignored when building a URI, i.e. - * no validation is performed. * *

Inspired by {@link javax.ws.rs.core.UriBuilder}. *