We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2137a0 commit 118d813Copy full SHA for 118d813
spring-web/src/main/java/org/springframework/http/ResponseEntity.java
@@ -242,7 +242,7 @@ public static BodyBuilder ok() {
242
* @return the created {@code ResponseEntity}
243
* @since 4.1
244
*/
245
- public static <T> ResponseEntity<T> ok(T body) {
+ public static <T> ResponseEntity<T> ok(@Nullable T body) {
246
return ok().body(body);
247
}
248
0 commit comments