Skip to content

Commit 5271f5b

Browse files
committed
Polishing
1 parent 626f427 commit 5271f5b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/function/PathResourceLookupFunction.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Optional<Resource> apply(ServerRequest request) {
6161
}
6262

6363
pathContainer = this.pattern.extractPathWithinPattern(pathContainer);
64-
String path = processPath(pathContainer.value());
64+
String path = ResourceHandlerUtils.normalizeInputPath(pathContainer.value());
6565
if (ResourceHandlerUtils.shouldIgnoreInputPath(path)) {
6666
return Optional.empty();
6767
}
@@ -84,14 +84,6 @@ public Optional<Resource> apply(ServerRequest request) {
8484
}
8585
}
8686

87-
/**
88-
* Process the given resource path.
89-
* <p>By default, this method delegates to {@link ResourceHandlerUtils#normalizeInputPath}.
90-
*/
91-
protected String processPath(String path) {
92-
return ResourceHandlerUtils.normalizeInputPath(path);
93-
}
94-
9587
@Override
9688
public String toString() {
9789
return this.pattern + " -> " + this.location;

0 commit comments

Comments
 (0)