Skip to content

Commit 486f64f

Browse files
committed
Polishing
1 parent 44f1d44 commit 486f64f

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ else if (index1 == requestUri.length()) {
290290
}
291291

292292
/**
293-
* Sanitize the given path with the following rules:
293+
* Sanitize the given path. Uses the following rules:
294294
* <ul>
295295
* <li>replace all "//" by "/"</li>
296296
* </ul>
@@ -497,7 +497,7 @@ protected String determineEncoding(HttpServletRequest request) {
497497
/**
498498
* Remove ";" (semicolon) content from the given request URI if the
499499
* {@linkplain #setRemoveSemicolonContent removeSemicolonContent}
500-
* property is set to "true". Note that "jssessionid" is always removed.
500+
* property is set to "true". Note that "jsessionid" is always removed.
501501
* @param requestUri the request URI string to remove ";" content from
502502
* @return the updated URI string
503503
*/
@@ -533,7 +533,7 @@ private String removeJsessionid(String requestUri) {
533533
* the URL path from which the variables were extracted is already decoded
534534
* through a call to {@link #getLookupPathForRequest(HttpServletRequest)}.
535535
* @param request current HTTP request
536-
* @param vars URI variables extracted from the URL path
536+
* @param vars the URI variables extracted from the URL path
537537
* @return the same Map or a new Map instance
538538
*/
539539
public Map<String, String> decodePathVariables(HttpServletRequest request, Map<String, String> vars) {
@@ -553,7 +553,7 @@ public Map<String, String> decodePathVariables(HttpServletRequest request, Map<S
553553
* the URL path from which the variables were extracted is already decoded
554554
* through a call to {@link #getLookupPathForRequest(HttpServletRequest)}.
555555
* @param request current HTTP request
556-
* @param vars URI variables extracted from the URL path
556+
* @param vars the URI variables extracted from the URL path
557557
* @return the same Map or a new Map instance
558558
*/
559559
public MultiValueMap<String, String> decodeMatrixVariables(

spring-web/src/test/java/org/springframework/http/converter/json/Jackson2ObjectMapperBuilderTests.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,8 @@
8080
import org.springframework.beans.FatalBeanException;
8181
import org.springframework.util.StringUtils;
8282

83-
import static org.hamcrest.Matchers.containsString;
84-
import static org.hamcrest.Matchers.not;
85-
import static org.junit.Assert.assertEquals;
86-
import static org.junit.Assert.assertFalse;
87-
import static org.junit.Assert.assertNotNull;
88-
import static org.junit.Assert.assertNull;
89-
import static org.junit.Assert.assertSame;
90-
import static org.junit.Assert.assertThat;
91-
import static org.junit.Assert.assertTrue;
83+
import static org.hamcrest.Matchers.*;
84+
import static org.junit.Assert.*;
9285

9386
/**
9487
* Test class for {@link Jackson2ObjectMapperBuilder}.

0 commit comments

Comments
 (0)