Skip to content

Commit e41b144

Browse files
committed
Restore method signature in ViewControllerRegistration
Issue: SPR-12016
1 parent f0bcb77 commit e41b144

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ViewControllerRegistration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ public ViewControllerRegistration setStatusCode(HttpStatus statusCode) {
6161
*
6262
* @see org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator
6363
*/
64-
public ViewControllerRegistration setViewName(String viewName) {
64+
public void setViewName(String viewName) {
6565
this.controller.setViewName(viewName);
66-
return this;
6766
}
6867

6968

0 commit comments

Comments
 (0)