mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add missing nullable annotation to ResponseEntity ok convenience method
This commit is contained in:
@@ -242,7 +242,7 @@ public class ResponseEntity<T> extends HttpEntity<T> {
|
||||
* @return the created {@code ResponseEntity}
|
||||
* @since 4.1
|
||||
*/
|
||||
public static <T> ResponseEntity<T> ok(T body) {
|
||||
public static <T> ResponseEntity<T> ok(@Nullable T body) {
|
||||
return ok().body(body);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user