Skip to content

Commit 64e79ba

Browse files
committed
Use hasLength rather than hasText
1 parent 4bcf92f commit 64e79ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ else if (resource instanceof ServletContextResource) {
316316
locationPath = location.getURL().getPath();
317317
}
318318
locationPath = (locationPath.endsWith("/") ||
319-
!StringUtils.hasText(locationPath) ? locationPath : locationPath + "/");
319+
!StringUtils.hasLength(locationPath) ? locationPath : locationPath + "/");
320320
if (!resourcePath.startsWith(locationPath)) {
321321
return false;
322322
}

0 commit comments

Comments
 (0)