Skip to content

Commit 204a50e

Browse files
committed
Fix compile issue
1 parent 4d3c305 commit 204a50e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,6 @@ protected boolean isInvalidPath(String path) {
515515
* @return the corresponding media type, or {@code null} if none found
516516
*/
517517
protected MediaType getMediaType(HttpServletRequest request, Resource resource) {
518-
// For backwards compatibility
519-
MediaType mediaType = getMediaType(resource);
520-
if (mediaType != null) {
521-
return mediaType;
522-
}
523518
return this.pathExtensionStrategy.getMediaTypeForResource(resource);
524519
}
525520

0 commit comments

Comments
 (0)