Skip to content

Commit 99890b6

Browse files
Allan-QLBsdeleuze
authored andcommitted
Fix ResourceHttpRequestHandler#setHeaders JavaDoc
Closes gh-35004 Signed-off-by: 秦利斌 <[email protected]>
1 parent 0afdb08 commit 99890b6

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
@@ -728,7 +728,7 @@ protected MediaType getMediaType(HttpServletRequest request, Resource resource)
728728
* Called for GET requests as well as HEAD requests.
729729
* @param response current servlet response
730730
* @param resource the identified resource (never {@code null})
731-
* @param mediaType the resource's media type (never {@code null})
731+
* @param mediaType the resource's media type
732732
* @throws IOException in case of errors while setting the headers
733733
*/
734734
protected void setHeaders(HttpServletResponse response, Resource resource, @Nullable MediaType mediaType)

0 commit comments

Comments
 (0)