Skip to content

Commit 44f1d44

Browse files
committed
Polishing
1 parent 2f8cdef commit 44f1d44

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.LinkedHashMap;
2222
import java.util.Map;
2323
import java.util.Properties;
24-
import javax.servlet.ServletContext;
2524
import javax.servlet.http.HttpServletRequest;
2625

2726
import org.apache.commons.logging.Log;
@@ -72,8 +71,9 @@ public class UrlPathHelper {
7271

7372

7473
/**
75-
* Whether URL lookups should always use the full path within current
76-
* application context, i.e. within {@link ServletContext#getContextPath()}.
74+
* Whether URL lookups should always use the full path within the current
75+
* web application context, i.e. within
76+
* {@link javax.servlet.ServletContext#getContextPath()}.
7777
* <p>If set to {@literal false} the path within the current servlet mapping
7878
* is used instead if applicable (i.e. in the case of a prefix based Servlet
7979
* mapping such as "/myServlet/*").
@@ -496,7 +496,7 @@ protected String determineEncoding(HttpServletRequest request) {
496496

497497
/**
498498
* Remove ";" (semicolon) content from the given request URI if the
499-
* {@linkplain #setRemoveSemicolonContent(boolean) removeSemicolonContent}
499+
* {@linkplain #setRemoveSemicolonContent removeSemicolonContent}
500500
* property is set to "true". Note that "jssessionid" is always removed.
501501
* @param requestUri the request URI string to remove ";" content from
502502
* @return the updated URI string
@@ -528,12 +528,10 @@ private String removeJsessionid(String requestUri) {
528528
}
529529

530530
/**
531-
* Decode the given URI path variables via
532-
* {@link #decodeRequestString(HttpServletRequest, String)} unless
533-
* {@link #setUrlDecode(boolean)} is set to {@code true} in which case it is
534-
* assumed the URL path from which the variables were extracted is already
535-
* decoded through a call to
536-
* {@link #getLookupPathForRequest(HttpServletRequest)}.
531+
* Decode the given URI path variables via {@link #decodeRequestString} unless
532+
* {@link #setUrlDecode} is set to {@code true} in which case it is assumed
533+
* the URL path from which the variables were extracted is already decoded
534+
* through a call to {@link #getLookupPathForRequest(HttpServletRequest)}.
537535
* @param request current HTTP request
538536
* @param vars URI variables extracted from the URL path
539537
* @return the same Map or a new Map instance
@@ -550,18 +548,16 @@ public Map<String, String> decodePathVariables(HttpServletRequest request, Map<S
550548
}
551549

552550
/**
553-
* Decode the given matrix variables via
554-
* {@link #decodeRequestString(HttpServletRequest, String)} unless
555-
* {@link #setUrlDecode(boolean)} is set to {@code true} in which case it is
556-
* assumed the URL path from which the variables were extracted is already
557-
* decoded through a call to
558-
* {@link #getLookupPathForRequest(HttpServletRequest)}.
551+
* Decode the given matrix variables via {@link #decodeRequestString} unless
552+
* {@link #setUrlDecode} is set to {@code true} in which case it is assumed
553+
* the URL path from which the variables were extracted is already decoded
554+
* through a call to {@link #getLookupPathForRequest(HttpServletRequest)}.
559555
* @param request current HTTP request
560556
* @param vars URI variables extracted from the URL path
561557
* @return the same Map or a new Map instance
562558
*/
563-
public MultiValueMap<String, String> decodeMatrixVariables(HttpServletRequest request,
564-
MultiValueMap<String, String> vars) {
559+
public MultiValueMap<String, String> decodeMatrixVariables(
560+
HttpServletRequest request, MultiValueMap<String, String> vars) {
565561

566562
if (this.urlDecode) {
567563
return vars;

0 commit comments

Comments
 (0)