Add missing nullable annotation to ResponseEntity ok convenience method
This commit is contained in:
parent
c2137a0d2f
commit
118d8133d3
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue