Add missing nullable annotation to ResponseEntity ok convenience method

This commit is contained in:
k3v1n 2021-02-26 16:48:38 +01:00 committed by Juergen Hoeller
parent c2137a0d2f
commit 118d8133d3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}