From 625855c00f1a670724bcf3cf524b3a24e0e6f1a0 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Thu, 6 Jul 2017 11:45:13 +0200 Subject: [PATCH] Add comment indicating path segment combining in UriComponents.normalize Issue: SPR-15734 --- .../main/java/org/springframework/web/util/UriComponents.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/util/UriComponents.java b/spring-web/src/main/java/org/springframework/web/util/UriComponents.java index 8e46d113454..89c83626fb3 100644 --- a/spring-web/src/main/java/org/springframework/web/util/UriComponents.java +++ b/spring-web/src/main/java/org/springframework/web/util/UriComponents.java @@ -187,7 +187,9 @@ public abstract class UriComponents implements Serializable { abstract UriComponents expandInternal(UriTemplateVariables uriVariables); /** - * Normalize the path removing sequences like "path/..". + * Normalize the path removing sequences like "path/..". Note that calling this method will + * combine all path segments into a full path before doing the actual normalisation, i.e. + * individual path segments will not be normalized individually. * @see org.springframework.util.StringUtils#cleanPath(String) */ public abstract UriComponents normalize();