mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Align @Nullable in returned Map with actual implementation
See gh-50265 Signed-off-by: Manu Sridharan <msridhar@gmail.com> Closes gh-50265
This commit is contained in:
committed by
Phillip Webb
parent
fc67e24820
commit
55a6b4525c
+1
-1
@@ -95,7 +95,7 @@ public class BasicErrorController extends AbstractErrorController {
|
||||
}
|
||||
|
||||
@RequestMapping
|
||||
public ResponseEntity<Map<String, Object>> error(HttpServletRequest request) {
|
||||
public ResponseEntity<Map<String, @Nullable Object>> error(HttpServletRequest request) {
|
||||
HttpStatus status = getStatus(request);
|
||||
if (status == HttpStatus.NO_CONTENT) {
|
||||
return new ResponseEntity<>(status);
|
||||
|
||||
Reference in New Issue
Block a user