mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 00:09:02 +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